I am working on a SLURM-based cluster. I am currently using the following slurm json file:
{
"__default__" :
{
"A" : "overall",
"time" : "96:00:00",
"nodes": 1,
"ntasks": 1,
"cpus" : 24,
"p" : "LONG",
"mem": 16G,
"output": "snakemake%A.out",
"error": "snakemake%A.err"
}
}
along with the following command:
snakemake --jobs 200 --use-conda --printshellcmds --cluster-config slurm.json --cluster "sbatch -A {cluster.A} -p {cluster.p} -t {cluster.time} --output {cluster.output} --error {cluster.error} --ntasks {cluster.ntasks} --cpus-per-task {cluster.cpus} --mem {cluster.mem}"
I would like to be able to specify my email and receive an email when a job finishes. I have tried adding a line in the json file with "email": my@email.com
and an option to the sbatch command --email {cluster.email}
but that did not work.
Anyone knows how to do it?
#SBATCH --mail-user=email@com
I have used--mail-user
instead. I'll let you know if I receive an email. $\endgroup$--mail-type
. $\endgroup$