[slurm-users] Does setting 'job_desc.mail_user' in job_submit.lua work?

7 views
Skip to first unread message

Loris Bennett

unread,
Jan 10, 2022, 5:14:41 AM1/10/22
to Slurm Users Mailing List
Hi,

Does setting 'mail_user' in job_submit.lua actually work in Slurm
21.08.5?

I have, if certain conditions are met

job_desc.mail_user = other_email_address

Logging tells me that this part of the code is indeed reached, but the
email address in the job is not changed.

Other parts of the plugin work, but they only read other elements of
job_desc and do not modify anything.

Am I doing something wrong?

Cheers,

Loris

--
Dr. Loris Bennett (Herr/Mr)
ZEDAT, Freie Universität Berlin Email loris....@fu-berlin.de

Marcus Boden

unread,
Jan 10, 2022, 6:52:25 AM1/10/22
to slurm...@lists.schedmd.com
Hi Loris,

I can confirm the problem: I am not able to modify the
job_desc.mail_user. Other values can be modified, though.

We are also on 21.08.5

Best,
Marcus

On 10.01.22 11:14, Loris Bennett wrote:
> Hi,
>
> Does setting 'mail_user' in job_submit.lua actually work in Slurm
> 21.08.5?
>
> I have, if certain conditions are met
>
> job_desc.mail_user = other_email_address
>
> Logging tells me that this part of the code is indeed reached, but the
> email address in the job is not changed.
>
> Other parts of the plugin work, but they only read other elements of
> job_desc and do not modify anything.
>
> Am I doing something wrong?
>
> Cheers,
>
> Loris
>

--
Marcus Vincent Boden, M.Sc. (he/him)
Computing Group
Tel.: +49 (0)551 201-2191, E-Mail: mbo...@gwdg.de
-------------------------------------------------------------------------
Gesellschaft für wissenschaftliche Datenverarbeitung mbH Göttingen
(GWDG) Burckhardtweg 4, 37077 Göttingen, URL: https://gwdg.de

Support: Tel.: +49 551 39-30000, URL: https://gwdg.de/support
Sekretariat: Tel.: +49 551 39-30001, E-Mail: gw...@gwdg.de

Geschäftsführer: Prof. Dr. Ramin Yahyapour
Aufsichtsratsvorsitzender: Prof. Dr. Norbert Lossau
Sitz der Gesellschaft: Göttingen
Registergericht: Göttingen, Handelsregister-Nr. B 598

Zertifiziert nach ISO 9001
-------------------------------------------------------------------------

Loris Bennett

unread,
Jan 10, 2022, 7:56:26 AM1/10/22
to Slurm User Community List
Hi Marcus,

Thanks for confirming. So this is a bug (a documentation one at least),
since

https://slurm.schedmd.com/job_submit_plugins.html

claims that

_get_job_req_field() contains the list of attributes available for the
job_descriptor (e.g. submission or modification request).

and _get_job_req_field() contains 'mail_user'.

Cheers,

Loris

Marcus Boden <mbo...@gwdg.de> writes:

> Hi Loris,
>
> I can confirm the problem: I am not able to modify the job_desc.mail_user. Other
> values can be modified, though.
>
> We are also on 21.08.5
>
> Best,
> Marcus
>
> On 10.01.22 11:14, Loris Bennett wrote:
>> Hi,
>> Does setting 'mail_user' in job_submit.lua actually work in Slurm
>> 21.08.5?
>> I have, if certain conditions are met
>> job_desc.mail_user = other_email_address
>> Logging tells me that this part of the code is indeed reached, but the
>> email address in the job is not changed.
>> Other parts of the plugin work, but they only read other elements of
>> job_desc and do not modify anything.
>> Am I doing something wrong?
>> Cheers,
>> Loris
>>
--

Alexander Block

unread,
Jan 10, 2022, 9:46:13 AM1/10/22
to Slurm User Community List, Loris Bennett
Hi Loris,

I can confirm that this does not work. I patched it myself and opened
already an enhancement (Bug 11591) but nothing happened so far...

Regards,

Alexander


Am 10.01.2022 um 11:14 schrieb Loris Bennett:
> Hi,
>
> Does setting 'mail_user' in job_submit.lua actually work in Slurm
> 21.08.5?
>
> I have, if certain conditions are met
>
> job_desc.mail_user = other_email_address
>
> Logging tells me that this part of the code is indeed reached, but the
> email address in the job is not changed.
>
> Other parts of the plugin work, but they only read other elements of
> job_desc and do not modify anything.
>
> Am I doing something wrong?
>
> Cheers,
>
> Loris
>
--
Mit freundlichen Gruessen / Kind regards

Dr. Alexander Block
-------------------------------------------
Leibniz-Rechenzentrum
der Bayerischen Akademie der Wissenschaften
HPC Services
Boltzmannstr. 1
85748 Garching b. Muenchen

Phone: +49 89 35831-8817
Room: I.3.067
-------------------------------------------


Loris Bennett

unread,
Jan 10, 2022, 10:06:56 AM1/10/22
to Slurm Users Mailing List
Hi Alexander,

Thanks for the further confirmation. It's a shame your patch has not
made it into a release yet - it seems like a fairly minor change.

Cheers,

Loris


Alexander Block <Alexand...@lrz.de> writes:

> Hi Loris,
>
> I can confirm that this does not work. I patched it myself and opened already an
> enhancement (Bug 11591) but nothing happened so far...
>
> Regards,
>
> Alexander
>
>
> Am 10.01.2022 um 11:14 schrieb Loris Bennett:
>> Hi,
>>
>> Does setting 'mail_user' in job_submit.lua actually work in Slurm
>> 21.08.5?
>>
>> I have, if certain conditions are met
>>
>> job_desc.mail_user = other_email_address
>>
>> Logging tells me that this part of the code is indeed reached, but the
>> email address in the job is not changed.
>>
>> Other parts of the plugin work, but they only read other elements of
>> job_desc and do not modify anything.
>>
>> Am I doing something wrong?
>>
>> Cheers,
>>
>> Loris
>>
--
Reply all
Reply to author
Forward
0 new messages