MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / dueAsOf

Method dueAsOf

src/schedule/store.ts:160–164  ·  view source on GitHub ↗

Schedules whose next_run_at is <= now and that are enabled.

(now: Date)

Source from the content-addressed store, hash-verified

158
159 /** Schedules whose next_run_at is <= now and that are enabled. */
160 dueAsOf(now: Date): ScheduleEntry[] {
161 return this.db.prepare(
162 `SELECT * FROM schedules WHERE enabled = 1 AND next_run_at IS NOT NULL AND next_run_at <= ?`,
163 ).all(now.toISOString()) as ScheduleEntry[];
164 }
165
166 recordRunStart(scheduleId: string): number {
167 const r = this.db.prepare(

Callers 2

schedule.test.tsFile · 0.80
tickFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected