Allow user email configuration in profile for on-demand email alerts when recipes complete

Registered Posts: 196 ✭✭✭✭✭✭
2
2 votes

New · Last Updated

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

Welcome!

It looks like you're new here. Sign in or register to get started.

Comments

  • Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,363 Neuron

    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.

  • Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,363 Neuron

    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).

    https://doc.dataiku.com/dss/latest/release_notes/13.html#dataset-and-connections

  • Registered Posts: 196 ✭✭✭✭✭✭

    @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.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.