fix: make artifact projection durable

This commit is contained in:
ZacharyZhang-NY committed 2026-04-23 21:50:49 -04:00
1 parent 84c00e0011
commit 88c905c381
15 files changed
+654 -76

No files matched your search

+11
View File
@@ -258,6 +258,17 @@ export function buildRunMethods(
return { budgetHardStopped };
},
markRunCompletionFailure(runId: string, errorMessage: string): void {
const ts = nowIso();
transaction(() => {
getDb()
.prepare(
"update runs set status = 'failed', summary = ?, error_message = ?, usage_status = 'error_stop', finished_at = coalesce(finished_at, ?), updated_at = ? where id = ?",
)
.run("Run completion blocked by artifact projection failure.", errorMessage, ts, ts, runId);
});
},
cancelRunForDeletion(runId: string, taskId: string | null, workspaceId: string | null, summary: string) {
const ts = nowIso();
getDb()