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 50e66ae
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/sim/lib/mothership/async-runs/repository.ts
+23-5Lines changed: 23 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -868,6 +868,12 @@ export type ToolExecutionClaim =
868
868
/** Already claimed or settled. */
869
869
|{outcome: 'existing'}
870
870
871
+
/** A Sim handler's claim, which also reports an unclaimed call too late to start. */
872
+
exporttypeSimToolExecutionClaim=
873
+
|ToolExecutionClaim
874
+
/** Admitted but unclaimed, with too little of its deadline left to start: nothing ran it. */
875
+
|{outcome: 'too_late'}
876
+
871
877
/**
872
878
* Every condition at once, typed as a condition: drizzle's `and` may return undefined, which a
873
879
* negation would render as `NOT (NULL)` and match nothing.
@@ -904,6 +910,13 @@ const tooLateToStart = sql`(${copilotAsyncToolCalls.executionDeadlineAt} IS NOT
904
910
*/
905
911
constpastResumeGiveUp=sql`(${copilotAsyncToolCalls.executionDeadlineAt} IS NOT NULL AND ${copilotAsyncToolCalls.executionDeadlineAt} + ${TOOL_WATCHDOG_RESUME_GRACE_MS} * interval '1 millisecond' <= clock_timestamp())`
906
912
913
+
/** A call nothing claimed or started whose deadline leaves too little to start it. */
0 commit comments