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

Function markWorkflowGroupPickedUp

apps/sim/lib/table/cell-write.ts:150–163  ·  view source on GitHub ↗
(
  ctx: WriteWorkflowGroupContext,
  prev: Pick<RowExecutionMetadata, 'workflowId' | 'jobId'>
)

Source from the content-addressed store, hash-verified

148 * trigger.dev queue or actively executing.
149 */
150export async function markWorkflowGroupPickedUp(
151 ctx: WriteWorkflowGroupContext,
152 prev: Pick<RowExecutionMetadata, 'workflowId' | 'jobId'>
153): Promise<'wrote' | 'skipped'> {
154 return writeWorkflowGroupState(ctx, {
155 executionState: {
156 status: 'running',
157 executionId: ctx.executionId,
158 jobId: prev.jobId,
159 workflowId: prev.workflowId,
160 error: null,
161 },
162 })
163}
164
165/** Builds the canonical `cancelled` execution state used by every cancel path.
166 * Preserves `blockErrors` from the prior state so errored cells keep

Callers 1

Calls 1

writeWorkflowGroupStateFunction · 0.85

Tested by

no test coverage detected