( cronExpression?: string | null, timezone = 'UTC' )
| 111 | } |
| 112 | |
| 113 | function getNextRunFromCronExpression( |
| 114 | cronExpression?: string | null, |
| 115 | timezone = 'UTC' |
| 116 | ): Date | null { |
| 117 | if (!cronExpression) return null |
| 118 | const cron = new Cron(cronExpression, { timezone }) |
| 119 | return cron.nextRun() |
| 120 | } |
| 121 | |
| 122 | async function claimWorkflowSchedules(queuedAt: Date, limit: number) { |
| 123 | if (limit <= 0) return [] |
no outgoing calls
no test coverage detected