Is it possible to expand the number of characters used in the JobName
column of the command sacct
in SLURM?
For example, I currently have:
JobID JobName Elapsed NCPUS NTasks State ------------ ---------- ---------- ---------- -------- ---------- 12345 lengthy_na+ 00:00:01 4 1 FAILED
and I would like:
JobID JobName Elapsed NCPUS NTasks State ------------ ---------- ---------- ---------- -------- ---------- 12345 lengthy_name 00:00:01 4 1 FAILED
To view the statistics of a completed job using Slurm's sacct command. Copied! Copied! You can get statistics (accounting data) on completed jobs by passing either the jobID or username flags.
PD. The job is waiting for resource allocation. It will eventually run. PREEMPTED.
DESCRIPTION. squeue is used to view job and job step information for jobs managed by Slurm.
If you want to cancel all of your jobs then you can use scancel -u username , where username is your system username (i.e. jharri62 is my username). Often you may want to be selective and keep some jobs running, but cancel others.
You should use the format option, with:
sacct --helpformat
you'll see the parameters to show, for instance:
sacct --format="JobID,JobName%30"
will print the job id and the name up to 30 characters:
JobID JobName ------------ ------------------------------ 19009 bash 19010 launch.sh 19010.0 hydra_pmi_proxy 19010.1 hydra_pmi_proxy
Now, you can to customize your own output.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With