(tasks: CronTask[], nowMs: number)
| 469 | * was down is still "missed". |
| 470 | */ |
| 471 | export 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 | } |