HYDI-45: Prevent duplicate scheduler dispatches#41
Draft
oz-by-warp[bot] wants to merge 2 commits into
Draft
Conversation
Co-Authored-By: Oz <oz-agent@warp.dev>
|
The preview deployment for hyper-dispatch is ready. 🟢 Open Preview | Open Build Logs | Open Application Logs Last updated at: 2026-06-02 14:34:59 CET |
Co-Authored-By: Oz <oz-agent@warp.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements HYDI-45
Changes
setIntervalscheduler ticking with self-schedulingsetTimeoutthat waits for each cycle to finish before scheduling the next.claimRunForSpawn(ticketKey)and safe rollback viareleaseSpawnClaim(ticketKey)so only one scheduler cycle can dispatch a queued ticket.upsertDispatchRunconflict updates to block stalequeuedwrites from downgradingrunning/succeededrows.Validation
npm testnpm run typechecknpm run test:coverageCo-Authored-By: Oz oz-agent@warp.dev
Conversation: https://app.warp.dev/conversation/63c3fd0f-052b-4002-b317-adc91ea63ec2
Run: https://oz.warp.dev/runs/019e88b9-35b2-754d-b5fc-2e265d53ffd0
This PR was generated with Oz.