[slurm-users] know time limit from inside job
melchers at zedat.fu-berlin.de
Mon Jul 27 20:46:58 UTC 2020
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:
> While waiting on that, we've taken to injecting it into the job's environment ourselves in the Lua submit filter.
> ???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:
> 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?
More information about the slurm-users