Queue SLURM jobs to run X minutes after each other

浪尽此生 提交于 2021-01-29 13:30:02

问题


I have been trying to search around for an example of how to use the following option for job dependencies, -d, --dependency=<dependency_list>.

In the documentation, the syntax is shown to be after:job_id[[+time][:jobid[+time]...]] But I am unable to find any examples of this, and to be honest I find the presentation of the syntax confusing.

I have tried sbatch --dependency=after:123456[+5] myjob.slurm and sbatch --dependency=after:123456+5 myjob.slurm, but this yields the error

sbatch: error: Batch job submission failed: Job dependency problem.

How can I add a dependency to Job B so that it starts X minutes after Job A starts?


回答1:


The square brackets [...] indicate an optional parameter value and should not appear in the actual parameter value. Try with

sbatch --dependency=after:123456+5 myjob.slurm



回答2:


With guidance from damienfrancois to exclude the brackets, I tried the following

sbatch --dependency=after:123456:+5 myjob.slurm

Which seems to work beautifully, listing it in the queue as dependent.

EDIT: This is for version 19.05.07



来源:https://stackoverflow.com/questions/64497802/queue-slurm-jobs-to-run-x-minutes-after-each-other

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!