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.
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 10:44 AM
Hi @Chris Thompson ,
Thanks for quick reply.
03-31-2023 07:18 PM
Hi @James Smith
Hope everything is going great.
Just wanted to check in if you were able to resolve your issue. If yes, would you be happy to mark an answer as best so that other members can find the solution more quickly? If not, please tell us so we can help you.
Cheers!
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.
If there isn’t a group near you, start one and help create a community that brings people together.
Request a New Group