Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Added on February 17, 2025 6:51PM
Likes: 2
Replies: 3
Hi,
I know Dataiku has scenarios and I use them daily. But when I am debugging flow recipes it would be great if I could configure Dataiku how to send me an email in my profile. Then in a recipe I could just switch a radio button 'EMAIL ON COMPLETION' to ON and walk away. When I am developing in dataiku, many of my flows can take over an hour and I am constantly task switching to see which ones got done. Yes I could setup a scenario for each one but I would like it made easier :)
thx
This can be done with a webapp. You finish editting a recipe and need to run it. You copy the URL of the recipe and paste in the a webapp. The webapp will then let you select if you want to build just the recipe, all downstream outputs or all upstream outputs. It will also ask you if you want an email when done. Then the webapp creates the scenario via the Dataiku API and executes it. The scenario executes and emails you when done, be it success or failure. Problem solved.
An alternative to this solution is that you have your scenarios pre-built and predefined. Then you paste the URL in the webapp the webapp searches for the predefined scenario and executes it.
There is also a new feature in 13.4.0 that lets you schedule a dataset build directly from the flow. But I don't believe it's suitable for this case since it merely creates the scenario with an option to attach the resulting dataset in an email (though no option to email the person).
@Thank you @Turribeach . One of our experts came up with this solution but we all agree making this a simple on/off widget in the recipe would add a lot of value.
#This code will send an email alert if a condition is met
from dataiku.core.message_sender import MessageSender s = MessageSender(channel_id='MY_SMTP', type='mail-scenario', configuration={}) #Create code to check a condition
my_condition = True #Dummy code setting my condition to true if my_condition:
message = "My condition has occured. I could put a url here in the message."
subject = "ALERT: This condition has occurred"
email_alert_address = "my_email@myorg.com" s.send(message=message, subject=subject, recipient=email_alert_address)
Dataiku could let users easily configure their SMTP email in their profile once and then allow the send email widget to handle on/off.