Skip to content
Snippets Groups Projects
Commit decfbe46 authored by Peter Steinbach's avatar Peter Steinbach
Browse files

added onsuccess and onerror statements as comments

parent 48221b23
No related branches found
No related tags found
No related merge requests found
......@@ -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))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment