Last active
June 12, 2023 12:27
-
-
Save MVesuviusC/a3933bbe9de0ffc1f8ccb822d9251c37 to your computer and use it in GitHub Desktop.
scron jobs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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