Open arnikz opened 4 years ago
Correct, Xenon fetched "JobID,JobName,Partition,NTasks,Elapsed,State,ExitCode,AllocCPUS,DerivedExitCode,Submit,Suspended,Start,User,End,NNodes,Timelimit,Comment,Priority" fields for completed jobs in https://github.com/xenon-middleware/xenon/blob/master/src/main/java/nl/esciencecenter/xenon/adaptors/schedulers/slurm/SlurmScheduler.java#L332-L333. Which is missing NodeList
.
We could add NodeList
to sacct
command and %N
to squeue
command, but this could open up floodgates for even more fields. To just fetch everything you can use sacct --helpformat
to get list of all fields and concat them for get the completed job info and squeue has %all
format to report all fields. There will be differences between Slurm version, Slurm deployments, non-completed vs completed jobs, but as the info is in schedulerSpecificInformation
that should be OK.
xenon --version
Xenon CLI v3.0.5, Xenon library v3.1.0, Xenon cloud library v3.0.2
This works fine when using the gridengine
scheduler (i.e., hostname
included in JSON).
We could add
NodeList
tosacct
command and%N
tosqueue
command, but this could open up floodgates for even more fields.
Having NodeList
in the output would be sufficient and consistent with the GE's hostname
, and one can use one command for basic accounting info.