将作业添加到 SLURM 队列,优先级高于先前提交的作业

Add a job to SLURM queue with higher priority as previously submitted jobs

我想提交并 运行 一个作业 X 到 SLURM 队列,同时已经有其他作业 YZ 在该队列中等待。 基本上,我想避免手动执行 scontrol hold YZ 或通过提交 X 和作业 X 完成后立即 scontrol release YZ 找到自动 scontrol hold YZ 的方法。

干杯

有一个 scontrol top <jobID> 命令,它将一个作业放在同一用户 ID 的其他作业之上。但必须由系统管理员启用。

引用 scontrol man-page:

top job_list

Move the specified job IDs to the top of the queue of jobs belonging to the identical user ID, partition name, account, and QOS. The job_list argument is a comma separated ordered list of job IDs. Any job not matching all of those fields will not be effected. Only jobs submitted to a single partition will be effected. This operation changes the order of jobs by adjusting job nice values. The net effect on that user's throughput will be negligible to slightly negative. This operation is disabled by default for non-privileged (non-operator, admin, SlurmUser, or root) users. This operation may be enabled for non-privileged users by the system administrator by including the option "enable_user_top" in the SchedulerParameters configuration parameter.