Thank  you Bjørn for the suggestion, indeed this would be a valid solution
for that example.
Of course we would prefer to leverage a scripting language such as Lua
rather than relying on a bash script that outputs export statements.

I wonder if anybody could confirm whether they can access
job_desc.environment from Lua.

I haven't debugged the slurm code to see why the environment is null in
this case yet. We're running version 17.11.4. I will report back to mention
whether this keeps happening once we update to the latest stable version.

Cheers,
Pablo

On Tue, May 22, 2018 at 12:28 PM Bjørn-Helge Mevik <b.h.me...@usit.uio.no>
wrote:

> Pablo Llopis <pablo.llo...@gmail.com> writes:
>
> > 2) Could there be another way of achieving the same thing?
>
> Perhaps you could use the TaskProlog to set the environment variables
> you want?
>
> --
> Regards,
> Bjørn-Helge Mevik, dr. scient,
> Department for Research Computing, University of Oslo
>

Reply via email to