feat(KB-082): complete Step 2 — Record failure error in executor
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user