Pass CWL ToolTimeLimit.timelimit to slurm job submission#5502
Conversation
|
@adamnovak CI is running using https://github.com/DataBiosphere/toil/tree/issues/3037-wallclock-slurm (a.k.a |
|
Oh excellent, we have wanted this for a while. |
|
@mr-c I have been made aware of My thinking is that it might make sense to keep them separate, as currently the logic is:
This means that |
I think it makes sense to keep |
adamnovak
left a comment
There was a problem hiding this comment.
This looks pretty good, but I think some of the variable names ought to change and I think supporting --defaultWalltime=0 would be good.
| ) | ||
| cpu_note = "Fractions of a core (for example 0.1) are supported on some batch systems [mesos, single_machine]" | ||
| disk_mem_note = "Standard suffixes like K, Ki, M, Mi, G or Gi are supported" | ||
| disk_walltime_note = "Values are assumed to be in seconds. A value of 0 does not limit the walltime" |
There was a problem hiding this comment.
There's nothing disk_ about this.
There was a problem hiding this comment.
Thanks for catching this! Updated in 7d734b4.
There was a problem hiding this comment.
This could use more testing to ensure that the limit is really applied, and I think the WDL interpreter will want to plug into this eventually, and it would be good if --defaultWalltime could take formatted durations and not just a number of seconds, but all that can be improved later.
|
I pulled this in with |
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