Reduce local provider queue delay with fast-path dispatch#1553
Merged
Reduce local provider queue delay with fast-path dispatch#1553
Conversation
Replace the long-running background worker loop with on-demand task creation. When a job is submitted and no other job is processing, it starts immediately via asyncio.create_task() instead of going through the asyncio.Queue round-trip. When a job IS already processing, the new job is buffered in the queue and drained sequentially after the current job completes. https://claude.ai/code/session_01SbHdBY6MjKL7JGhUQ1QotF
|
Paragon Review Skipped Hi @aliasaria! Your Polarity credit balance is insufficient to complete this review. Please visit https://home.polarity.cc to add more credits and continue using Paragon reviews. |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
deep1401
approved these changes
Mar 16, 2026
Member
deep1401
left a comment
There was a problem hiding this comment.
Just adding more context, this fixes a job going from INTERACTIVE > WAITING > INTERACTIVE when using local provider
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.
Replace the long-running background worker loop with on-demand task
creation. When a job is submitted and no other job is processing, it
starts immediately via asyncio.create_task() instead of going through
the asyncio.Queue round-trip. When a job IS already processing, the
new job is buffered in the queue and drained sequentially after the
current job completes.
https://claude.ai/code/session_01SbHdBY6MjKL7JGhUQ1QotF