Limiting scenario reporting mails

UserKp
Level 3
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

0 Kudos
1 Reply
Turribeach

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:

https://developer.dataiku.com/latest/concepts-and-examples/scenarios.html#get-information-about-the-...

And here is how you can conditionally execute a scenario step or the mail reporter:

https://community.dataiku.com/t5/What-s-New/Want-to-Control-the-Execution-of-Scenario-Steps-With-Con...

Thanks

 

0 Kudos