[slurm-users] know time limit from inside job

Baer, Troy troy at osc.edu
Mon Jul 27 16:52:41 UTC 2020


There's an outstanding feature request for that:

https://bugs.schedmd.com/show_bug.cgi?id=8383

While waiting on that, we've taken to injecting it into the job's environment ourselves in the Lua submit filter.

	--Troy

On 7/27/20, 12:45 PM, "slurm-users on behalf of Brian Andrus" <slurm-users-bounces at lists.schedmd.com on behalf of toomuchit at gmail.com> wrote:

    All,
    
    Trying to see the best way to identify the time limit of a job from 
    within the job.
    I had hoped it was one of the SLURM variables, but apparently not.
    
    Is there an easy way outside doing an 'squeue' or 'scontrol' call from 
    the job to find out the max time of itself?
    
    I hate doing RPC calls as too many of them can tip a system over.
    
    Brian Andrus
    
    
    



More information about the slurm-users mailing list