fix: remove dead setStatus calls from engine

This commit is contained in:
Dustin Byrne
2026-03-25 19:02:24 -04:00
parent db5831be74
commit 98ddf0f3d3
3 changed files with 0 additions and 6 deletions

View File

@@ -75,7 +75,6 @@ export class TaskExecutor {
console.log(`[executor] Starting ${task.id}: ${task.title}`);
try {
await this.store.setStatus(task.id, "executing");
// Check dependencies
const allTasks = await this.store.listTasks();
const unmetDeps = task.dependencies.filter((depId) => {
@@ -147,7 +146,6 @@ export class TaskExecutor {
}
} catch (err: any) {
console.error(`[executor] ✗ ${task.id} execution failed:`, err.message);
await this.store.setStatus(task.id, "idle");
this.options.onError?.(task, err);
} finally {
this.executing.delete(task.id);