aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/onfailure.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/python/onfailure.py b/python/onfailure.py
new file mode 100644
index 00000000..15a18e34
--- /dev/null
+++ b/python/onfailure.py
@@ -0,0 +1,17 @@
+from serenitas.utils.exchange import ExchangeMessage
+import argparse
+
+parser = argparse.ArgumentParser(description="Generate quantifi product files")
+parser.add_argument(
+ "service",
+ help="if present filename where the output will be saved. Otherwise print to stdout.",
+ )
+args = parser.parse_args()
+
+em = ExchangeMessage()
+
+em.send_email(
+ 'Failed Service',
+ f'This service failed: {args.service}',
+ ('fyu@lmcg.com',)
+) \ No newline at end of file