Wake idle workers when jobs are queued - #521
Merged
WaylandYang merged 4 commits intoSep 9, 2026
Merged
Conversation
Publish transactional PostgreSQL notifications for new and immediately requeued jobs so idle workers do not wait for the polling interval. Closes deeplethe#517 Signed-off-by: RKS <rajesh.sharma@owasp.org>
Signed-off-by: WaylandYang <wayland0916@gmail.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: WaylandYang <wayland0916@gmail.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: WaylandYang <wayland0916@gmail.com>
Contributor
|
Merged, with two changes pushed to your branch first so it could land today:
The notification sites are exactly as you wrote them, all five. One comment added: the listener keeps a pool connection for good, so the pool has one fewer to hand out. Thanks for the complete coverage; that is what decided between the two PRs for #517. |
This was referenced Sep 9, 2026
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.
Closes #517
Summary
Validation
cargo fmt --all --checkUTOPIA_DATABASE_URL=postgres://utopia:utopia@localhost:1517/utopia UTOPIA_TEST_REQUIRE_DB=1 cargo test --workspacecargo clippy --workspace --all-targets -- -D warnings./node_modules/.bin/vite buildThe repository's
pnpm buildwrapper could not complete because this environment's pnpm policy requires explicit approval for theesbuildinstall script; the direct Vite build passed.