jobs starting/ending on stampede do not send emails

Create issue
Issue #1549 closed
anonymous created an issue

jobs starting/ending on stampede do not send emails because stampede.sub lacks a line like:

#SBATCH --mail-user=


Comments (7)

  1. Erik Schnetter
    • removed comment

    According to documentation, the default value for --mail-user is the submitting user.

    Have you confirmed that setting --mail-user leads to emails being sent, while emails are not being sent without this option? If so, can you post the complete job submission script here?

  2. Ian Hinder
    • removed comment

    This could be the email account of the user on the particular machine; i.e. it might not forward to your own external email address.

  3. Ian Hinder
    • changed status to open
    • removed comment

    I have the following in my stampede.sub file, and I get emails from the queuing system.

    #SBATCH --mail-type=ALL
    #SBATCH --mail-user=@EMAIL@

    Before adding this, I did not get any emails.

    I suspect that the default of leaving --mail-user unset causes the emails to go to the user's system mailbox on the head node, not to their external email address. I propose that the above be added to stampede.sub, either before or after the release.

    For reference, my complete submit script is

    #! /bin/bash
    #SBATCH -p @QUEUE@
    #SBATCH @("@CHAINED_JOB_ID@" != "" ? "-d afterany:@CHAINED_JOB_ID@" : "")@
    #SBATCH --mail-type=ALL
    #SBATCH --mail-user=@EMAIL@
    cd @SOURCEDIR@
  4. Log in to comment