[slurm-users] How to get command from a finished job

Paul Edmon pedmon at cfa.harvard.edu
Thu Apr 30 12:52:16 UTC 2020


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:

*MinJobAge*
    The minimum age of a completed job before its record is purged from
    Slurm's active database. Set the values of *MaxJobCount* and to
    ensure the slurmctld daemon does not exhaust its memory or other
    resources. The default value is 300 seconds. A value of zero
    prevents any job record purging. Jobs are not purged during a
    backfill cycle, so it can take longer than MinJobAge seconds to
    purge a job if using the backfill scheduling plugin. In order to
    eliminate some possible race conditions, the minimum non-zero value
    for *MinJobAge* recommended is 2. 

-Paul Edmon-

On 4/30/2020 3:39 AM, Gestió Servidors wrote:
>
> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20200430/d1234780/attachment-0001.htm>


More information about the slurm-users mailing list