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

[v8.1] Make Job.setNumberOfProcessors safer to use #7194

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

chrisburr
Copy link
Member

In LHCb we had issues with a user submitting jobs with Job.setNumberOfProcessors(minProc=10, maxProc=1). This resulted in the job only requesting one CPU and caused complaints from sites.

I think we should just make this API safer to use by rejecting values which aren't valid with an exception.

Any thoughts?

BEGINRELEASENOTES

*WorkloadManagement
CHANGE: Job.setNumberOfProcessors raises an exception if the function arguments aren't valid.

ENDRELEASENOTES

@fstagni fstagni merged commit df6a89f into DIRACGrid:integration Sep 12, 2023
24 checks passed
@chrisburr chrisburr deleted the safer-set-nproc branch September 12, 2023 11:43
@DIRACGridBot DIRACGridBot added the sweep:ignore Prevent sweeping from being ran for this PR label Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep:ignore Prevent sweeping from being ran for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants