I have submitted several jobs on a computing cluster, but did not set the --mail-user. Can I update the specification now? Hope to receive emails after the jobs finish running. Thanks a lot!
I am not sure Slurm allows that. What you can do is submit a dummy job dependent on the already-submitted job (with jobid <your-job-id>
), like this:
sbatch --mail-user=<your-email-address> --mail-type=START --dependency=afterany:<your-job-id> --wrap "echo OK"
so that this job will start only when the one you wanted to modify ends, and it will send an email then.
MailUser
and MailType
fields can be updated. The default MailUser
is the submitting user, so it may only be necessary to update the MailType
.
scontrol update jobid=<jobid> MailUser=<[email protected]>
scontrol update jobid=<jobid> MailType=<END,FAIL,...>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With