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

Automatically prioritize jobs by user #11

Open
hurngchunlee opened this issue Jul 3, 2019 · 0 comments
Open

Automatically prioritize jobs by user #11

hurngchunlee opened this issue Jul 3, 2019 · 0 comments

Comments

@hurngchunlee
Copy link
Member

The situation is that if someone submitted many long transfer jobs; other user's job comes after has to wait.

A manual way to raise the priority of an existing job is by calling the following API:

curl -X PUT 'https://stage.dccn.nl/q/ui/job/:id/priority/:priority'

Where the value of :priority can be one of the following integers:

  • 10: 'low'
  • 0: 'normal'
  • -5: 'medium'
  • -10': 'high'
  • -15: 'critical'

The stager should at-least smart enough to determine the priority accordingly given the number of jobs of the same user. E.g.

The first 10 jobs has priority '-10', the second 100 jobs has priority '-5', and jobs more than 500 in the queue should have priority of '0'.

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

No branches or pull requests

1 participant