Skip to content

Instantly share code, notes, and snippets.

@MVesuviusC
Last active June 12, 2023 12:27
Show Gist options
  • Save MVesuviusC/a3933bbe9de0ffc1f8ccb822d9251c37 to your computer and use it in GitHub Desktop.
Save MVesuviusC/a3933bbe9de0ffc1f8ccb822d9251c37 to your computer and use it in GitHub Desktop.
scron jobs
# List scron jobs
scrontab -l
#Edit scron job
scrontab -e
# If scrontab get disabled
scrontab -e
# Delete #DISABLED.... up until $SCRON
# Example job
#SCRON --time 6:00:00
#SCRON --cpus-per-task 2
#SCRON -o ./backups/weekly_maint.txt
@weekly ./maint_weekly_mvc.sh
# change partition of a job
squeue \
| grep mvc \
| grep PD \
| grep feature \
| awk '{print $1}' \
| xargs -I var scontrol update jobid var Partition=general
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment