[slurm-users] know time limit from inside job

Brian Andrus toomuchit at gmail.com
Mon Jul 27 20:39:10 UTC 2020


Troy,

I have added my vote for that feature. Meanwhile, I am looking at doing 
it through the job_submit.lua, but I am unable to access 
job_desc.environment (it is NULL). Looks like others have had that issue 
as well, but I see no resolution.

How are you setting environment variables from lua, if I may ask?

Brian Andrus

On 7/27/2020 9:52 AM, Baer, Troy wrote:
> 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