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

Implement queuing priority #56 #58

Open
wants to merge 4 commits into
base: 38_prepare_queued_downloads
Choose a base branch
from

Conversation

patrick-austin
Copy link

Also includes changes from #45 #51, due to dependency of priority settings on submitting to and polling the queue. See those PRs for those changes in isolation.

  • Add queue priority settings to run.properties.
    • This can be a single number, for all users, authenticated users, investigation users or instrument scientists.
    • For the latter two, it can also be a mapping of Instrument.name or role to a priority level
  • Class to handle loading and formatting priority levels in JPQL
  • Added functions to IcatClient to perform these queries for a given user to identify their level of priority
  • Modified StatusCheck to get all queued Downloads, then when iterating only submit those with priority 1. If there is still space, start submitting from priority 2 and so on.
  • For queue submission endpoints, now only submit if user has a positive priority

Closes #56

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.

1 participant