(schedule: {
id: string
nextRunAt?: Date | null
lastQueuedAt?: Date | null
})
| 101 | } |
| 102 | |
| 103 | function buildScheduleExecutionJobId(schedule: { |
| 104 | id: string |
| 105 | nextRunAt?: Date | null |
| 106 | lastQueuedAt?: Date | null |
| 107 | }): string { |
| 108 | const occurrence = |
| 109 | schedule.nextRunAt?.toISOString() ?? schedule.lastQueuedAt?.toISOString() ?? 'due' |
| 110 | return `schedule_${sha256Hex(`${schedule.id}:${occurrence}`).slice(0, 32)}` |
| 111 | } |
| 112 | |
| 113 | function getNextRunFromCronExpression( |
| 114 | cronExpression?: string | null, |
no test coverage detected