(payload: ScheduleExecutionPayload | null)
| 234 | } |
| 235 | |
| 236 | function getSchedulePayloadClaimedAt(payload: ScheduleExecutionPayload | null): Date | null { |
| 237 | if (!payload) return null |
| 238 | const claimedAt = new Date(payload.now) |
| 239 | return Number.isNaN(claimedAt.getTime()) ? null : claimedAt |
| 240 | } |
| 241 | |
| 242 | async function restoreScheduleClaim( |
| 243 | scheduleId: string, |
no outgoing calls
no test coverage detected