(id: string)
| 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 | |
| 31 | const MAX_RUNS_PER_TASK = 500; |
no test coverage detected