MCPcopy Index your code
hub / github.com/simstudioai/sim / markDispatchComplete

Function markDispatchComplete

apps/sim/lib/table/dispatcher.ts:710–715  ·  view source on GitHub ↗
(dispatchId: string)

Source from the content-addressed store, hash-verified

708}
709
710export async function markDispatchComplete(dispatchId: string): Promise<void> {
711 await db
712 .update(tableRunDispatches)
713 .set({ status: 'complete', completedAt: new Date() })
714 .where(eq(tableRunDispatches.id, dispatchId))
715}
716
717/** Complete a dispatch only if it's still active, returning whether THIS call
718 * performed the transition. Lets concurrent cells that all hit a hard stop

Callers 2

dispatcherStepFunction · 0.85
completeDispatchFunction · 0.85

Calls 2

setMethod · 0.65
eqFunction · 0.50

Tested by

no test coverage detected