Skip to content

How can a user set a priority when submitting jobs through the API #6841

Answered by fstagni
marianne013 asked this question in Q&A
Discussion options

You must be logged in to vote

I think it's possible with

jobObject = Job()  # I guess at some point you have this
...
jobObject._addParameter(jobObject.workflow,  "Priority", "JDL", str(self.priority), "UserPriority")

But TBH it would be better to add a method to API.Job. Feel free to add it.

Another possibility is to create a new users' group, name it e.g. "high_priority_users", that has the same description of your standard users' group with the exception of the "JobShare" parameter, to which you would give a pretty higher number (yes, I know "what does that mean?" but there's no doc whatsoever, this is really ancient code).
If you go for this solution, your user would need to do dirac-proxy-init -g high_priority_u…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by chrisburr
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants