【发布时间】:2017-06-06 15:47:54
【问题描述】:
可以延迟或错开通过带有 qsub 的作业数组启动的作业的启动,例如qsub -t1-4 launch.pbs?
我可以通过在我的 pbs 脚本中休眠一小段但随机的时间来做到这一点,但我想知道是否有直接的方法通过 qsub 将其指定给调度程序
【问题讨论】:
-
什么调度器?
-
这不适用于使用作业数组启动的作业
可以延迟或错开通过带有 qsub 的作业数组启动的作业的启动,例如qsub -t1-4 launch.pbs?
我可以通过在我的 pbs 脚本中休眠一小段但随机的时间来做到这一点,但我想知道是否有直接的方法通过 qsub 将其指定给调度程序
【问题讨论】:
是的,有可能。
来自http://gridscheduler.sourceforge.net/htmlman/htmlman1/qsub.html:
-a date_time
Available for qsub and qalter only.
Defines or redefines the time and date at which a job
is eligible for execution. Date_time conforms to
[[CC]]YY]MMDDhhmm[.SS], for the details, please see
Date_time in: sge_types(1).
If this option is used with qsub or if a corresponding
value is specified in qmon then a parameter named a and
the value in the format CCYYMMDDhhmm.SS will be passed
to the defined JSV instances (see -jsv option below or
find more information concerning JSV in jsv(1))
您可以在 .pbs 中添加此选项。
例如,
#PBS -a 1550
让任务等到 15:50;如果今天15:50运行太晚,明天运行;与
#PBS -a 010900
任务将在下个月的第一天早上运行。
【讨论】: