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

Schedule new jobs at the top of the queue #44

Open
Sebobo opened this issue Jul 18, 2023 · 3 comments
Open

Schedule new jobs at the top of the queue #44

Sebobo opened this issue Jul 18, 2023 · 3 comments
Labels
question Further information is requested

Comments

@Sebobo
Copy link
Member

Sebobo commented Jul 18, 2023

We have the requirement to schedule certain jobs at the top of the queue depending on some parameter.

Is this already possible with one of the existing strategies or does this need some new implementation?

@Sebobo Sebobo added the question Further information is requested label Jul 18, 2023
@Sebobo
Copy link
Member Author

Sebobo commented Jul 19, 2023

Hi @hlubek, do you think this adjustment or implementation of a new strategy is hard to do?

@hlubek
Copy link
Member

hlubek commented Jul 19, 2023

We could add a new (optional) priority field for POST /pipelines/schedule and order the queued job according to that priority. If you need to always get to the top of the queue, you could e.g. use a timestamp for the priority.

Would that work for your scenario?

@Sebobo
Copy link
Member Author

Sebobo commented Jul 20, 2023

We have two kinds of jobs. One that should be prioritised and the others go to the end of the queue. So if I provide a timestamp and if it's not null it should go to the top, that would work for me 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants