fix(file-search): recover dispatch claims abandoned between commit and enqueue - #8209
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
There was a problem hiding this comment.
No issues found across 14 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
Preserve staging migrations 0380 and 0381, regenerate the dispatch handoff migration as 0382, and align the file-search integration fixture with the mothership module path.
|
@cubic-dev-ai review this PR |
@icecrasher321 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 14 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
Summary
statement_timeout), left claims that no run would finish, and they held their workspace's two slots until the six-hour stale reaper.handoff_expires_at(additive nullable column, PostgreSQL clock), set to twice the dispatcher's maximum duration when claimed and cleared once a run is known to exist: Trigger.dev accepted the batch, or the worker began the build. The next dispatch releases a claim whose deadline lapsed and claims the file again under a new token; the existing token fencing turns any late or duplicate run into a no-op.Type of Change
Testing
TZ=America/Los_Angeles(one optional benchmark skipped), covering release after the deadline, enqueued claims kept through the stale window, a token-fenced handoff write, a locked claim skipped instead of waited on, and a failed handoff write keeping its claims.check:migrations origin/staging, andcheck:api-validation.Checklist