Make background outbox claims lease-safe #480

Merged
timmy merged 1 commits from timmy/479-lease-safe-background-claims into main 2026-08-10 11:23:40 +00:00
Owner

Closes #479

What changed

  • plan a finite lane-fair batch but claim each record only when a worker slot is ready
  • renew uniquely-tokened claims before each network stage
  • fence checkpoints, completion, release, and failure against stale owners
  • preserve crash recovery and existing idempotency keys

Validation

  • python -m pytest tests/test_background_issue_sync.py -q — 39 passed
  • hermes verify --json — 958 passed; readiness HTTP 200
Closes #479 ## What changed - plan a finite lane-fair batch but claim each record only when a worker slot is ready - renew uniquely-tokened claims before each network stage - fence checkpoints, completion, release, and failure against stale owners - preserve crash recovery and existing idempotency keys ## Validation - `python -m pytest tests/test_background_issue_sync.py -q` — 39 passed - `hermes verify --json` — 958 passed; readiness HTTP 200
timmy added 1 commit 2026-08-10 11:22:12 +00:00
fix: fence background delivery claims (Closes #479)
All checks were successful
CI / lint (pull_request) Successful in 56s
CI / build-release (pull_request) Successful in 5s
CI / release-candidate (pull_request) Has been skipped
31b0e79aa1
timmy merged commit b667963968 into main 2026-08-10 11:23:40 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#480
No description provided.