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=

Keyword:

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 -A @ALLOCATION@
    #SBATCH -p @QUEUE@
    #SBATCH -t @WALLTIME@
    #SBATCH -N @NODES@ -n @NUM_PROCS@
    #SBATCH @("@CHAINED_JOB_ID@" != "" ? "-d afterany:@CHAINED_JOB_ID@" : "")@
    #SBATCH -J @SHORT_SIMULATION_NAME@
    #SBATCH --mail-type=ALL
    #SBATCH --mail-user=@EMAIL@
    #SBATCH -o @RUNDIR@/@SIMULATION_NAME@.out
    #SBATCH -e @RUNDIR@/@SIMULATION_NAME@.err
    cd @SOURCEDIR@
    @SIMFACTORY@ run @SIMULATION_NAME@ --machine=@MACHINE@ --restart-id=@RESTART_ID@ @FROM_RESTART_COMMAND@
    
  4. Log in to comment