* Remove a batch of tasks from the in-memory store and mirror each * deletion to disk (when persistence is attached). Returns the * subset of ids that were actually present, matching * `SessionCronStore.remove`'s contract — callers (CronDelete / * scheduler one-shot cleanup / stale auto-
(ids: readonly string[])
| 216 | * `list()` shape-guard pass. |
| 217 | */ |
| 218 | removeTasks(ids: readonly string[]): readonly string[] { |
| 219 | const removed = this.store.remove(ids); |
| 220 | for (const id of removed) { |
| 221 | this.persistEnqueue(id, () => this.persistStore!.remove(id)); |
| 222 | } |
| 223 | return removed; |
| 224 | } |
| 225 | |
| 226 | /** |
| 227 | * Persist the scheduler's `lastFiredAt` cursor for a recurring task |
no test coverage detected