From 754a1d6d2c7e23c5f2c9205bff67510c6fd9db34 Mon Sep 17 00:00:00 2001 From: David Klein Date: Fri, 12 Jul 2024 10:28:16 +0200 Subject: [PATCH] With the slurm version on the new cluster you have to explicitly request email notification for failed runs. Providing the additional argument "FAIL" also works on the old cluster. --- scripts/start/submit.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start/submit.R b/scripts/start/submit.R index 1ea35c56a..a2a126059 100644 --- a/scripts/start/submit.R +++ b/scripts/start/submit.R @@ -132,7 +132,7 @@ submit <- function(cfg, restart = FALSE, stopOnFolderCreateError = TRUE) { exitCode <- system(paste0("sbatch --job-name=", cfg$title, " --output=log.txt --open-mode=append", # append for requeued jobs - " --mail-type=END", + " --mail-type=END,FAIL", " --comment=REMIND", " --wrap=\"Rscript prepareAndRun.R \" ", cfg$slurmConfig))