简体   繁体   English

如何为 Slurm 作业指定依赖项?

[英]How to specify dependncies for Slurm jobs?

I would like to submit 4 jobs to the Slurm queue with the following dependencies:我想将 4 个作业提交到具有以下依赖项的 Slurm 队列:

  • Job1: - , no dependencies Job1: - ,无依赖
  • Job2: afterok: 1 , only starts if Job1 finishes successfully Job2: afterok: 1 ,仅在 Job1 成功完成时启动
  • Job3: afterok: 2 , only starts if Job2 finishes successfully Job3: afterok: 2 ,仅在 Job2 成功完成时启动
  • Job4: afternotok:1 OR afternotok:2 OR afterany:3 , only starts if Job1 or Job2 didn't finish successfully or Job3 finishes ( --dependency=afterok:1?afterok:2?afterany:3 ). Job4: afternotok:1 OR afternotok:2 OR afterany:3 ,仅在 Job1 或 Job2 未成功完成或 Job3 完成时启动( --dependency=afterok:1?afterok:2?afterany:3 )。

The issue I am experiencing is that Job4 never starts if Job3 finishes successfully.我遇到的问题是,如果 Job3 成功完成,则 Job4 永远不会启动。 How do I need to specify the dependencies of Job4 to start even though Job3 finishes successfully?即使 Job3 成功完成,我如何需要指定 Job4 的依赖项才能启动?

The text and the command are contradictory?文字和命令是矛盾的? You say after not okay in the text, but in the example you use afterok.您在文本中说 after not OK,但在示例中您使用 afterok。 This should work:这应该有效:

--dependency=afternotok:1?afternotokay:2?afterany:3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM