But you can change the time limit at runtime with "scontrol update job
...". Therefore an environment variable can have an outdated value.

> 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-boun...@lists.schedmd.com on behalf of toomuc...@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?
> ...     

Reply via email to