Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix queue order when combining multiple prefixes or prefixes and names #410

Merged
merged 4 commits into from
Nov 16, 2024

Conversation

rosa
Copy link
Member

@rosa rosa commented Nov 14, 2024

We were altering the original order to be exact names and then prefixes in the order returned by the DB, which doesn't need to be the order specified for the worker. This change ensures the order is respected. Besides this, this also documents a bit the performance implications of the different ways to specify queues per worker.

This fixes #360.

Separate `queue` database and bin/jobs to start. Also, refresh setup
script to support `docker compose` and set up the 3 DBs.
Since we'll use separate DBs for test, there's no need to run all tests
with a separate connection.
We were altering the original order to be exact names and then prefixes
in the order returned by the DB, which doesn't need to be the order
specified for the worker. This change ensures the order is respected.
@rosa rosa merged commit 24bad6f into main Nov 16, 2024
8 checks passed
@rosa rosa deleted the fix-queue-selection branch November 16, 2024 11:29
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.

Enqueued jobs do not respect queue priorities
1 participant