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

Priority Queues #14

Open
Tracked by #12
jakobo opened this issue Dec 3, 2022 · 0 comments
Open
Tracked by #12

Priority Queues #14

jakobo opened this issue Dec 3, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@jakobo
Copy link
Owner

jakobo commented Dec 3, 2022

Why

When jobs are scheduled to run at the same time, the current take() operation on drivers does not sort for higher priority jobs.

Solution

  • Add an additional optional "priority" field to the document
  • Add necessary indexes to allow drivers to take by visible < now, ordered by priority DESC then visible DESC
    • Loki driver change
    • Mongo driver change
    • Postgres driver change
@jakobo jakobo added the enhancement New feature or request label Dec 3, 2022
@jakobo jakobo mentioned this issue Dec 3, 2022
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant