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

Function incrementScheduleFailedCount

apps/sim/background/schedule-execution.ts:68–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66type ExecutionCoreResult = Awaited<ReturnType<typeof executeWorkflowCore>>
67
68function incrementScheduleFailedCount(): SQL {
69 return sql`COALESCE(${workflowSchedule.failedCount}, 0) + 1`
70}
71
72function scheduleStatusAfterFailedCountIncrement(): SQL {
73 return sql`CASE WHEN COALESCE(${workflowSchedule.failedCount}, 0) + 1 >= ${MAX_CONSECUTIVE_FAILURES} THEN 'disabled' ELSE 'active' END`

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected