MCPcopy Index your code
hub / github.com/codeaashu/claude-code / listAllCronTasks

Function listAllCronTasks

src/utils/cronTasks.ts:288–296  ·  view source on GitHub ↗
(dir?: string)

Source from the content-addressed store, hash-verified

286 * have no session store to merge with.
287 */
288export 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`.

Callers 3

callFunction · 0.85
validateInputFunction · 0.85
validateInputFunction · 0.85

Calls 2

readCronTasksFunction · 0.85
getSessionCronTasksFunction · 0.85

Tested by

no test coverage detected