(scheduleId: string)
| 164 | } |
| 165 | |
| 166 | recordRunStart(scheduleId: string): number { |
| 167 | const r = this.db.prepare( |
| 168 | `INSERT INTO schedule_runs (schedule_id, status) VALUES (?, 'running')`, |
| 169 | ).run(scheduleId); |
| 170 | return Number(r.lastInsertRowid); |
| 171 | } |
| 172 | |
| 173 | /** |
| 174 | * Record the result of a run and atomically advance next_run_at. |
no test coverage detected