A Python script that will allow you to track completion of slurm jobs. Especially useful if you are running many jobs and regarding different projects.
To install and use:
-
Copy jobcheck.py to machine
- You can copy the file anywhere; I chose my home directory.
-
(optional) Add alias to your echo "alias sq 'python ~/jobcheck.py'" >> .bashrc
-
Run command
- When you run for the first time, the script initializes and logs current job information.
- Note you must run the command everytime after you submit jobs, or else it won't log current job info.
This is what it looks like when you run the command and a job has ended since the last time the command was run:
If you have any ideas please let me know!
- Email triggers
- Functionality across multiple machines to log and track all jobs
- Combination with aqme qcorr to automate job resubmissions if failed QM calc
- Sleep timer so the job will run in the background without prompting