You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 98fb34c
Browse filesBrowse the repository at this point in the historyBrowse files
consttooLateToStart=sql`(${copilotAsyncToolCalls.executionDeadlineAt} IS NOT NULL AND ${copilotAsyncToolCalls.executionDeadlineAt} < clock_timestamp() + ${SIM_TOOL_MIN_START_BUDGET_MS} * interval '1 millisecond')`
899
900
901
+
/**
902
+
* A call past its deadline plus the resume grace: the resume wait's ceiling for it (`run.ts`), past
903
+
* which nothing still waits for its result. A call without a deadline never matches.
904
+
*/
905
+
constpastResumeGiveUp=sql`(${copilotAsyncToolCalls.executionDeadlineAt} IS NOT NULL AND ${copilotAsyncToolCalls.executionDeadlineAt} + ${TOOL_WATCHDOG_RESUME_GRACE_MS} * interval '1 millisecond' <= clock_timestamp())`
906
+
900
907
/**
901
908
* A Sim execution whose owner died before recording a result: its lease lapsed, which a live
902
909
* owner's heartbeat never lets happen. A takeover runs it again until it has started
@@ -1069,7 +1076,8 @@ export async function claimDesktopToolCall(
1069
1076
/**
1070
1077
* Expired ownership cannot be renewed, even before a follower has observed the expiry. With
1071
1078
* `desktop`, the call must still be running on a run bound to that device, so a call Stop settled
1072
-
* cannot be renewed either.
1079
+
* cannot be renewed either, nor one past its deadline plus the resume grace: its lease then lapses
1080
+
* and the call settles as outcome unknown.
1073
1081
*/
1074
1082
exportasyncfunctionrenewSimToolExecutionLease(
1075
1083
owner: SimToolExecutionOwner,
@@ -1092,6 +1100,7 @@ export async function renewSimToolExecutionLease(
0 commit comments