Skip to content

Commit

Permalink
Clarify the use of Job.set_rqmt and Job.update_rqmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jairsan committed Nov 12, 2024
1 parent d256f43 commit b066d4e
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit b066d4e

Please sign in to comment.