Hello,
I would like to know if there exist any way to get the same information I can get from a running or pending job in the queue with “scontrol show jobid=XXXX” when the job has finished. When it has finished, “scontrol show jobid=XXXX” doesn’t work and “sacct -j jobid” doesn’t show all the information I need. For example, with “scontrol show jobid” I can know what command has been submited, its workir, the stderr file and the stdout one. This information, I think, cannot be obtained when the job is finished and I run “sacct”.
Thanks.
No, that data is purged from the scheduler after completion. So records of the job exist in your job completion log or in the sacct database. The script that it ran is not saved, though I believe there are several bug requests in to SchedMD to add that feature. People have come up with various home grown solutions to save that data.
You could always increase the length of time the scheduler keeps that data after completion by increasing MinJobAge:
Hello,
I would like to know if there exist any way to get the same information I can get from a running or pending job in the queue with “scontrol show jobid=XXXX” when the job has finished. When it has finished, “scontrol show jobid=XXXX” doesn’t work and “sacct -j jobid” doesn’t show all the information I need. For example, with “scontrol show jobid” I can know what command has been submited, its workir, the stderr file and the stdout one. This information, I think, cannot be obtained when the job is finished and I run “sacct”.
Thanks.