dbx icon indicating copy to clipboard operation
dbx copied to clipboard

Job Notifications

Open IamSandeepGunda opened this issue 1 year ago • 2 comments

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.

IamSandeepGunda avatar Aug 19 '23 05:08 IamSandeepGunda

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"

stephen-bowser avatar Aug 23 '23 11:08 stephen-bowser

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

doug-cresswell avatar Aug 25 '23 14:08 doug-cresswell