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

Clarify the use of Job.set_rqmt and Job.update_rqmt #219

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sisyphus/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -1114,6 +1114,8 @@ def output_var(self, filename, pickle=False, backup=None):
def set_rqmt(self, task_name, rqmt):
"""Overwrites the given requirements for this job

If this function is called more than once, only the effects of the last call are applied.

:param str task_name: Which task will be affected
:param rqmt: the new requirements
:return:
Expand All @@ -1125,6 +1127,8 @@ def set_rqmt(self, task_name, rqmt):
def update_rqmt(self, task_name, rqmt):
"""Updates the given requirements for this job, values not set in rqmt will not be affected.

If this function is called more than once, only the effects of the last call are applied.

:param str task_name: Which task will be affected
:param rqmt: the new requirements
:return:
Expand Down
Loading