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

Method removeTasks

packages/agent-core/src/agent/cron/manager.ts:218–224  ·  view source on GitHub ↗

* 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[])

Source from the content-addressed store, hash-verified

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

Callers 4

constructorMethod · 0.95
handleFireMethod · 0.95
resume.test.tsFile · 0.80
resolveExecutionMethod · 0.80

Calls 2

persistEnqueueMethod · 0.95
removeMethod · 0.65

Tested by

no test coverage detected