[slurm-users] How to read job accounting data long output? `sacct -l`

Marcus Wagner wagner at itc.rwth-aachen.de
Thu Dec 15 07:48:15 UTC 2022



Am 15.12.2022 um 08:23 schrieb Bjørn-Helge Mevik:
> Marcus Wagner <wagner at itc.rwth-aachen.de> writes:
> 
>> it it important to know, that the json output seems to be broken.
>>
>> First of all, it does not (compared to the normal output) obey to the truncate option -T.
>> But more important, I saw a job, where in a "day output" (-S <date> -E <date+1day>) no steps were recorded.
>> Using sacct -j <jobid> --json instead showed that job WITH steps.
> 
> It is hard to call it "broken" when it is documented behaviour:
> 
>   --json    Dump job information as JSON. All other formatting arguments will be ignored
> 

That depends on what is meant with formatting argument.
To me, formatting arguments are "-b", "-l", "-o", "-p|-P"
Instead, I can use filtering arguments with --json, like "-u", "-p" etc. And I would assume, that -S, -E and -T are filtering options, not formatting options.

But as I explained before, not obeying to -T is bad behaviour. That is nothing I would call "broken".


But getting sometimes no steps for a job (if in a larger JSON-output with many jobs) and then getting the steps, if one asks specifically for that jobid. That is something I would call broken.

Best Marcus

-- 
Dipl.-Inf. Marcus Wagner

IT Center
Gruppe: Server, Storage, HPC
Abteilung: Systeme und Betrieb
RWTH Aachen University
Seffenter Weg 23
52074 Aachen
Tel: +49 241 80-24383
Fax: +49 241 80-624383
wagner at itc.rwth-aachen.de
www.itc.rwth-aachen.de

Social Media Kanäle des IT Centers:
https://blog.rwth-aachen.de/itc/
https://www.facebook.com/itcenterrwth
https://www.linkedin.com/company/itcenterrwth
https://twitter.com/ITCenterRWTH
https://www.youtube.com/channel/UCKKDJJukeRwO0LP-ac8x8rQ
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5326 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20221215/a223e233/attachment-0001.bin>


More information about the slurm-users mailing list