Make worker claims and provider attempts crash-safe #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
packages/db/src/worker-store.tsmarks requests asrunningbefore execution, but does not persist an attempt record before the external call and has no recovery path for requests left stuck inrunningafter crashes or exceptions.Why this matters
A worker crash or mid-flight exception can permanently strand a request, and the system also fails the auditability requirement to persist every provider-key attempt.
Acceptance criteria
GenerationAttemptbefore the provider call.runningrequests.