Q42: claimed runs that fail in preparation close cleanly and are logged
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6a4843a983
commit
9be5ad06c1
2 files changed
+16
-2
No files matched your search
@@ -112,8 +112,9 @@ export function startTaskQueueWorker(input: TaskQueueWorkerInput): () => void {
|
||||
inFlight[slot] = true;
|
||||
notifyDataChanged();
|
||||
void taskExecution.executeRun(claimed.org_id, claimed.id)
|
||||
.catch(() => {
|
||||
// executeRun records the failure on the run row; the UI reflects it.
|
||||
.catch((error: unknown) => {
|
||||
// executeRun already marked the run failed; log so the cause is visible outside the UI.
|
||||
console.error(`[task-queue] run ${claimed.id} failed: ${error instanceof Error ? error.message : String(error)}`);
|
||||
})
|
||||
.finally(() => {
|
||||
inFlight[slot] = false;
|
||||
|
||||
Reference in new issue
Block a user