MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / removeTask

Method removeTask

src/app/repo/agent_task.ts:23–28  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

21 }
22
23 async removeTask(id: string): Promise<void> {
24 await this.delete(id);
25 // 同时清理关联的 runs
26 const runRepo = new AgentTaskRunRepo();
27 await runRepo.clearRuns(id);
28 }
29}
30
31const MAX_RUNS_PER_TASK = 500;

Callers 3

handleDeleteFunction · 0.80
handleAgentTaskMethod · 0.80
agent_task.test.tsFile · 0.80

Calls 2

clearRunsMethod · 0.95
deleteMethod · 0.65

Tested by

no test coverage detected