Differences
This shows you the differences between two versions of the page.
en:services:application_services:high_performance_computing:running_jobs_slurm:scrontab [2021/04/26 14:11] – created mboden | en:services:application_services:high_performance_computing:running_jobs_slurm:scrontab [2021/04/26 14:14] (current) – [Usage] mboden | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Jobs at regular intervals ====== | ||
+ | |||
+ | If you have small tasks you want to run at regular intervals, Slurm has the [[https:// | ||
+ | |||
+ | ===== Usage ===== | ||
+ | Like '' | ||
+ | |||
+ | Inside the scrontab file, you can use ''# | ||
+ | |||
+ | You have two styles of defining when you job should run: | ||
+ | - common time intervals, e.g. '' | ||
+ | - [[https:// | ||
+ | The latter can get quite complex, but there are [[https:// | ||
+ | After defining when something should run, you can give a command or a script that is run at the appropriate time. The command or script has to be on the same line. The command to execute does not need to be a Slurm jobscript (i.e. should not contain ''# | ||
+ | |||
+ | These ''# | ||
+ | |||
+ | You can list your currently defined '' | ||
+ | |||
+ | Slurm cannot guarantee that the jobs will run at the requested times, but tries to schedule it es close as possible. Internally, jobs are submitted to Slurm and set with a specific BeginTime. Once a '' | ||
+ | |||
+ | ===== Example ===== | ||
+ | <file scrontab> | ||
+ | #SCRON -p fat | ||
+ | #SCRON -t 01:00:00 | ||
+ | @daily / | ||
+ | |||
+ | #SCRON -p medium | ||
+ | #SCRON -C scratch | ||
+ | #SCRON -t 05:00 | ||
+ | #check scratch every 5 minutes | ||
+ | */15 * * * * / | ||
+ | </ | ||
+ | |||
+ | |||