(tasks: CronTask[], nowMs: number)
| 451 | * was down is still "missed". |
| 452 | */ |
| 453 | export function findMissedTasks(tasks: CronTask[], nowMs: number): CronTask[] { |
| 454 | return tasks.filter(t => { |
| 455 | const next = nextCronRunMs(t.cron, t.createdAt) |
| 456 | return next !== null && next < nowMs |
| 457 | }) |
| 458 | } |
| 459 |