Notificaciones por EMAIL
Cada cambio de estado en un trabajo se notifica al usuario usando el email que se indique en los flags.
Eventos posibles
- NONE
- BEGIN
- END
- FAIL
- REQUEUE
- ALL (equivalent to BEGIN, END, FAIL, INVALID_DEPEND, REQUEUE, and STAGE_OUT)
- INVALID_DEPEND (dependency never satisfied)
- STAGE_OUT (burst buffer stage out and teardown completed)
- TIME_LIMIT
- TIME_LIMIT_90 (reached 90 percent of time limit)
- TIME_LIMIT_80 (reached 80 percent of time limit)
- TIME_LIMIT_50 (reached 50 percent of time limit)
- ARRAY_TASKS (send emails for each array task)
Se pueden poner varios separados por comas.
Uso con srun
Añadimos los flags correspondientes en linea de comandos (https://slurm.schedmd.com/sbatch.html)
--mail-type=<type>
--mail-user=<email>
Ejemplo:
srun --mail-type=ALL --mail-user=happyuser@umus.es helloworld.sh
Flags en el script
La versión dentro del script:
#SBATCH --mail-type=ALL
#SBATCH --mail-user=happyuser@umus.es
bash ./helloworkd.sh
Resumen de actividad
Estamos preparando un informe semanal / mensual de actividad y consumo por usuario que lllegaría a su correo.