dbx
dbx copied to clipboard
Job Notifications
Discussed in https://github.com/databrickslabs/dbx/discussions/831
Originally posted by IamSandeepGunda August 8, 2023 We've been exploring the Databricks Notification Destinations and set up a Slack destination to notify on errors and when the job is over it's runtime thresholds.
Is there a way to set these up in the deployment.yml
?
Currently, if I set it up on the UI, it's wiped away next time i perform a dbx deploy...
to that job.
Yep, I've managed this. Grab the ID of your slack endpoint and put it in the config of your workflow:
webhook_notifications:
on_failure:
- id: "xxx"
on_success:
- id: "xxx"
If you're not sure where to find the id you can add it in the UI, then copy it from the JSON configuration of your workflow