-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Steve Brasier edited this page Nov 1, 2019
·
2 revisions
Has been suggested that sacct could be used, something like
$(sacct -j $SLURM_JOB_ID --format JobID,NodeList%100,Start,End)
returns the right info.
The problem is:
- you have to specify a column width for the NodeList field otherwise they get truncated
- this gets more complex with job steps, so you see the launch + orted steps, depending on how it's run. I think taking the 1st one is always ok tho
- it won't have an end-time while it's running, so you can't run this during the sbatch script - unless we replaced a running end with "now" I guess?
- for short jobs (e.g. for testing) they don't show up in sacct before the job finishes