โ03-30-2023 08:16 AM
On job failure I need to send an email with a custom subject line. I have configured the email address as a destination with the subject that I need, but I don't see it as an option that I can choose in the 'System Notification' dialog in the job settings. Why is that?
โ03-31-2023 06:55 AM
Hi,
I got a response back from the team and right now there are both technical limitations, and also no firm plans to support centrally configured emails with jobs.
You might wonder why the UI allows you to add these other ones (Email, Teams, Etc.). It is because that part of the platform is also shared with redash, where they can all be used.
As a workaround, we recommend using the webhook option to call an external service that can then do an email notificationโฆ
cc: @Ajay Pandeyโ , @James Smithโ
โ03-31-2023 04:32 AM
Hi @James Smithโ ,
I am also facing the same issue @Chris Thompsonโ can you please help in this.
โ03-31-2023 05:46 AM
Hi Ajay, did you mean to tag Chris Williams?
โ03-31-2023 06:06 AM
In answer to the question, I've asked the product team as that does seem a bit odd.
I have not tried this, but you could try to use the Jobs API https://docs.databricks.com/dev-tools/api/latest/jobs.html#operation/JobsCreate and give it the Id of the Email destination under the failure condition.
I would need to test that though..
โ04-03-2023 05:35 AM
Thanks
Sure, will try this.
Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections.
Click here to register and join today!
Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.