Re: [slurm-users] know time limit from inside job

2020-07-27 Thread Bernd Melchers
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 i

Re: [slurm-users] know time limit from inside job

2020-07-27 Thread Brian Andrus
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

Re: [slurm-users] know time limit from inside job

2020-07-27 Thread Baer, Troy
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" wrote