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

Function buildScheduleFailureUpdate

apps/sim/background/schedule-execution.ts:88–101  ·  view source on GitHub ↗
(
  now: Date,
  nextRunAt: Date | null
)

Source from the content-addressed store, hash-verified

86 * `nextRunAt` cadence differs per caller.
87 */
88export function buildScheduleFailureUpdate(
89 now: Date,
90 nextRunAt: Date | null
91): WorkflowScheduleUpdate {
92 return {
93 updatedAt: now,
94 lastQueuedAt: null,
95 nextRunAt,
96 failedCount: incrementScheduleFailedCount(),
97 lastFailedAt: now,
98 status: scheduleStatusAfterFailedCountIncrement(),
99 ...resetScheduleInfraRetryCount(),
100 }
101}
102
103type RunWorkflowResult =
104 | {

Callers 4

executeScheduleJobFunction · 0.85

Tested by

no test coverage detected