Limiting scenario reporting mails
Hi,
I have configured a reporter for some scenarios and they send an email if the scenario fails, so the scenario is triggered every 15 minutes and an email is sent, but I want to limit these emails in case of scenario failure because it spams the mailbox for every fail
Thanks
Answers
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,166 Neuron
There is no built-in funtionality for this. However it is certainly possible to be achived if you are willing to get your hands dirty with the Dataiku Python API. In your scenario you could a custom Python step that can calculate the number of previous failures (and therefore the number of emails you have sent) and based on that make your reporter step conditional. Here are some helpers to get you started:
Get information about the last completed run of a scenario:
And here is how you can conditionally execute a scenario step or the mail reporter:
Thanks