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

Add priority options to remote job submission #3947

Merged
merged 1 commit into from Jul 31, 2020

Conversation

davidpanderson
Copy link
Contributor

Remote job submission was always using allocation-based prioritization.
This is not necessarily the right thing.
For example, nanoHUB submits batches of jobs that are mixtures
of speculative and user-submitted;
these simply need to be given low and high priorities.

The way things work now:

  • if you want allocation-based prioritization,
    set the "allocation_priority" flag in the request object
    (Python or PHP API)
  • or set the "priority" field in the request object;
    that sets the priority of all the jobs in the batch
  • or set the "priority" field of jobs in the batch.

Updated wiki docs accordingly.

Also fixed a bug in the test script
(note to self: adding an object to an array adds a reference, not a copy).

Fixes #

Description of the Change

Alternate Designs

Release Notes

This is not necessarily the right thing.
For example, nanoHUB submits batches of jobs that are mixtures
of speculative and user-submitted;
these simply need to be given low and high priorities.

The way things work now:
- if you want allocation-based prioritization,
    set the "allocation_priority" flag in the request object
    (Python or PHP API)
- or set the "priority" field in the request object;
    that sets the priority of all the jobs in the batch
- or set the "priority" field of jobs in the batch.

Updated wiki docs accordingly.

Also fixed a bug in the test script
(note to self: adding an object to an array adds a reference, not a copy).
@codecov
Copy link

codecov bot commented Jul 24, 2020

Codecov Report

Merging #3947 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #3947   +/-   ##
=========================================
  Coverage     16.56%   16.56%           
  Complexity      752      752           
=========================================
  Files           134      134           
  Lines         13115    13115           
  Branches       1631     1631           
=========================================
  Hits           2172     2172           
  Misses        10811    10811           
  Partials        132      132           

@davidpanderson davidpanderson merged commit 18dcd34 into master Jul 31, 2020
@AenBleidd AenBleidd added this to the Server Release 1.4.1 milestone Aug 14, 2023
@AenBleidd AenBleidd deleted the dpa_submit_priority branch August 15, 2023 09:28
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.

None yet

2 participants