From decfbe469cb1fe078827d7f0f22957f9611326ee Mon Sep 17 00:00:00 2001 From: Peter Steinbach <steinbach@scionics.de> Date: Tue, 7 Jul 2015 17:00:42 +0200 Subject: [PATCH] added onsuccess and onerror statements as comments --- spim_registration/timelapse/Snakefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/spim_registration/timelapse/Snakefile b/spim_registration/timelapse/Snakefile index e62a316..1fcde85 100644 --- a/spim_registration/timelapse/Snakefile +++ b/spim_registration/timelapse/Snakefile @@ -8,6 +8,7 @@ if JOBDIR[-1] != "/": # this checks if jobdir ends with slash if not it adds a s # Test config file single Channel: configfile: "single_test.yaml" + # Test config file dual channel one channel contains beads: # configfile: "dual_OneChannel.yaml" @@ -24,8 +25,7 @@ xml_merge_in = produce_xml_merge_job_files(datasets) rule done: input: [ ds + "_output_hdf5" for ds in datasets ] - #input: [ ds + "_fusion" for ds in datasets ] - + localrules: define_xml_czi, define_xml_tif, hdf5_xml, xml_merge, timelapse, duplicate_transformations, external_transform, define_output, hdf5_xml_output @@ -514,3 +514,11 @@ rule distclean: message : os.path.abspath(os.path.curdir) + ": rm -rf {params}" shell : "rm -rf {params}" + + +# NOTE! The following enables mailing, which will send out a mail once an entire workflow is done (the below does not include anything in the message body, redirect from /dev/null) +# onsuccess: +# shell("mail -s \"[SUCCESS] our_cluster:{jdir} finished \" xxx@mpi-cbg.de < /dev/null".format(jdir=JOBDIR)) + +# onerror: +# shell("mail -s \"[ERROR] out_cluster:{jdir}\" xxx@mpi-cbg.de < /dev/null".format(jdir=JOBDIR)) -- GitLab