gpt4 book ai didi

SLURM 如何知道正在运行的作业是 srun 还是 sbatch 作业?

转载 作者:行者123 更新时间:2023-12-05 04:05:07 26 4
gpt4 key购买 nike

当处于 RUNNING 状态时,我需要区分批处理作业和交互式作业。我无法通过 sactstat 找到了解作业是否为交互式 session 的方法。

有没有人解决过类似的问题?

最佳答案

您可以在 squeue 命令中使用 batchflag 格式化关键字来推断作业是否已使用 sbatch 命令提交。

$ squeue --Format=batchflag -u ${USER} --states=RUNNING

来自 scontrol 中的 BatchFlag 描述 help page :

Jobs submitted using the sbatch command have BatchFlag set to 1. Jobs submitted using other commands have BatchFlag set to 0.

关于SLURM 如何知道正在运行的作业是 srun 还是 sbatch 作业?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51597870/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com