feat(KB-082): complete Step 2 — Record failure error in executor

This commit is contained in:
gsxdsm
2026-03-29 21:41:51 -07:00
parent a2be60d8c9
commit c330a62165
2 changed files with 3 additions and 1 deletions

View File

@@ -148,6 +148,8 @@ export interface Task {
validatorModelId?: string;
/** Number of merge retry attempts made for this task (auto-merge conflict recovery) */
mergeRetries?: number;
/** Error message from the last failure, if task status is 'failed' */
error?: string;
/** ISO-8601 timestamp of when the task last entered its current column.
* Used to sort cards within a column so that recently-moved cards appear at the top. */
columnMovedAt?: string;

View File

@@ -526,7 +526,7 @@ export class TaskExecutor {
}
executorLog.error(`${task.id} execution failed:`, err.message);
await this.store.logEntry(task.id, `Execution failed: ${err.message}`);
await this.store.updateTask(task.id, { status: "failed" });
await this.store.updateTask(task.id, { status: "failed", error: err.message });
this.options.onError?.(task, err);
}
} finally {