MCPcopy Create free account
hub / github.com/Noumena-Network/code / findMissedTasks

Function findMissedTasks

src/utils/cronTasks.ts:471–476  ·  view source on GitHub ↗
(tasks: CronTask[], nowMs: number)

Source from the content-addressed store, hash-verified

469 * was down is still "missed".
470 */
471export function findMissedTasks(tasks: CronTask[], nowMs: number): CronTask[] {
472 return tasks.filter(t => {
473 const next = nextCronRunMs(t.cron, t.createdAt)
474 return next !== null && next < nowMs
475 })
476}

Callers 1

loadFunction · 0.85

Calls 1

nextCronRunMsFunction · 0.85

Tested by

no test coverage detected