Scrontab
Scrontab can be used to perform regularly recurring jobs, such as backing up files or retrieving system information.
Danger
As the best way to generate a random numbers is to let beginners use a vi-editor; so you may set the scrontab editor by setting to one youre familar with, example:
export EDITOR=$(which nano)
To edit your slurm cronjobs simply use:
scrontab
The options will exactly work like in sbatch.
Here is an brief example how this could look like:
1 2 3 4 5 6 7 8 9 10 11 12 |
|
- Define a directory. Variables scope works same way as in a bash script.
- Every day at 16:00 run squeue and write it to a file named by unixtime.
- Every thursday at 13:55 let 2 nodes
When this file is saved now slurm will automaticaly queue the listed jobs.
[bt123456@festus01 hpcadmin]# squeue
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)
7266 dev squeue bt123456 PD 0:00 1 (BeginTime)
7267 normal hostname bt123456 PD 0:00 2 (BeginTime)