Skip to content

feat: retry stuck sync markers immediately when missing blobs arrive#30

Merged
davidpoblador merged 1 commit intomainfrom
worktree-keen-snuggling-patterson
Apr 7, 2026
Merged

feat: retry stuck sync markers immediately when missing blobs arrive#30
davidpoblador merged 1 commit intomainfrom
worktree-keen-snuggling-patterson

Conversation

@davidpoblador
Copy link
Copy Markdown
Member

Summary

  • Adds SyncQueue.nudge_pending() which resets next_attempt to now for all markers in backoff
  • Calls nudge_pending() after every blob upload completes (both chunked PUT and monolithic POST)
  • Deferred manifest syncs now retry immediately when their missing blobs arrive, instead of waiting up to 5 minutes for the backoff timer

Closes #29

Test plan

  • test_nudge_pending_resets_backoff — markers in backoff become ready after nudge
  • test_nudge_pending_skips_already_ready — already-ready markers aren't touched
  • test_completing_upload_nudges_pending_markers — PUT blob upload triggers nudge
  • test_monolithic_upload_nudges_pending_markers — monolithic POST upload triggers nudge
  • Full test suite (75 tests passing)

🤖 Generated with Claude Code

When a blob upload completes, nudge all pending sync markers out of
backoff so deferred manifests retry immediately instead of waiting
up to 5 minutes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@davidpoblador davidpoblador merged commit 5f84fc9 into main Apr 7, 2026
1 check passed
@davidpoblador davidpoblador deleted the worktree-keen-snuggling-patterson branch April 7, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant