(dir?: string)
| 286 | * have no session store to merge with. |
| 287 | */ |
| 288 | export async function listAllCronTasks(dir?: string): Promise<CronTask[]> { |
| 289 | const fileTasks = await readCronTasks(dir) |
| 290 | if (dir !== undefined) return fileTasks |
| 291 | const sessionTasks = getSessionCronTasks().map(t => ({ |
| 292 | ...t, |
| 293 | durable: false as const, |
| 294 | })) |
| 295 | return [...fileTasks, ...sessionTasks] |
| 296 | } |
| 297 | |
| 298 | /** |
| 299 | * Next fire time in epoch ms for a cron string, strictly after `fromMs`. |
no test coverage detected