MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / computeNextCronRun

Function computeNextCronRun

packages/agent-core/src/tools/cron/cron-expr.ts:207–209  ·  view source on GitHub ↗
(expr: ParsedCronExpression, fromMs: number)

Source from the content-addressed store, hash-verified

205 * a future refactor that fails to advance the date.
206 */
207export function computeNextCronRun(expr: ParsedCronExpression, fromMs: number): number | null {
208 return nextRunWithinMinutes(expr, fromMs, 5 * 366 * 24 * 60);
209}
210
211/**
212 * True iff at least one fire exists within `years` years of `fromMs`.

Callers 6

cron-expr.test.tsFile · 0.90
computeJitteredNextFunction · 0.90
countCoalescedFunction · 0.90
tickFunction · 0.90
jitteredNextCronRunMsFunction · 0.90
resolveExecutionMethod · 0.90

Calls 1

nextRunWithinMinutesFunction · 0.85

Tested by

no test coverage detected