fix(FN-4429): resolve lint and test gate regressions

Fusion-Task-Id: FN-4429
Fusion-Task-Lineage: b010437b-0e58-43f6-81b3-40dcebbf0873
This commit is contained in:
Fusion
2026-05-14 10:31:06 -07:00
committed by gsxdsm
parent 40fee0c128
commit 95cd678c52
2 changed files with 9 additions and 9 deletions

View File

@@ -4335,9 +4335,8 @@ export class TaskExecutor {
this.stuckAborted.delete(task.id);
this.userCanceledTaskIds.delete(task.id);
await this.store.logEntry(task.id, "Execution canceled by user — leaving task in todo");
return;
}
try {
} else {
try {
// Re-read latest task state. While this execute() invocation was
// unwinding, self-healing (e.g. recoverCompletedTasks) may have
// already transitioned the task to in-review or done. Continuing
@@ -4388,9 +4387,10 @@ export class TaskExecutor {
executorLog.log(`${task.id} already in todo — skipping redundant move`);
}
}
} catch (err: unknown) {
const errorMessage = err instanceof Error ? err.message : String(err);
executorLog.error(`Failed to requeue stuck task ${task.id}: ${errorMessage}`);
} catch (err: unknown) {
const errorMessage = err instanceof Error ? err.message : String(err);
executorLog.error(`Failed to requeue stuck task ${task.id}: ${errorMessage}`);
}
}
}
}