You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mr-c I have been made aware of --maxJobDuration, which allows toil itself to cancel jobs after a specified time. I was wondering if it makes sense to use this input instead of adding --defaultWalltime.
My thinking is that it might make sense to keep them separate, as currently the logic is:
If ToolTimeLimit.timelimit is set, use that value.
If ToolTimeLimit.timelimit is not set but --defaultWalltime is used, use the value of --defaultWalltime.
Otherwise, do not set a time limit for slurm jobs.
This means that --defaultWalltime provides a baseline wall time for steps that do not specify a one and if, say, a step in a CWL sets ToolTimeLimit.timelimit: 0, the resulting slurm submission will not contain a wall time argument even if --defaultWalltime is set. --maxJobDuration allows a user to put an upper bound to the runtime of such jobs. Happy to hear your thoughts.
@mr-c I have been made aware of --maxJobDuration, which allows toil itself to cancel jobs after a specified time. I was wondering if it makes sense to use this input instead of adding --defaultWalltime.
My thinking is that it might make sense to keep them separate, as currently the logic is:
1. If `ToolTimeLimit.timelimit` is set, use that value.
2. If `ToolTimeLimit.timelimit` is not set but `--defaultWalltime` is used, use the value of `--defaultWalltime`.
3. Otherwise, do not set a time limit for slurm jobs.
This means that --defaultWalltime provides a baseline wall time for steps that do not specify a one and if, say, a step in a CWL sets ToolTimeLimit.timelimit: 0, the resulting slurm submission will not contain a wall time argument even if --defaultWalltime is set. --maxJobDuration allows a user to put an upper bound to the runtime of such jobs. Happy to hear your thoughts.
I think it makes sense to keep --defaultWalltime and still respect --maxJobDuration if set, yes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Provides an initial implementation for the option to pass runtimes to slurm's resource allocation. Addresss #3037.
Changelog Entry
To be copied to the draft changelog by merger:
--defaultWalltimeToolTimeLimitare used in slurm batch submissionsReviewer Checklist
issues/XXXX-fix-the-thingin the Toil repo, or from an external repo.camelCasethat want to be insnake_case.docs/running/{cliOptions,cwl,wdl}.rstMerger Checklist