Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2023 03:05 PM
Turns out there was a webhook but databricks had a bug that made it so it didn't show up in the UI.
The way to find out the offending portion is to look at the json for the job:
The ui is convinced that doesn't exist so you have to use the jobs API to fix it.
import requests
api_base = "https://adb-[redacted].azuredatabricks.net/api/2.0"
databricks_service = "the_o=_part_of_the_url"
# let databricks know the authorization and that we're submitting json
headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {databricks_token}",
}
# create data for request
data = {
"job_id": {job_id},
"fields_to_remove": ["webhook_notifications"],
}
# submit the rerquest
update_jobs_url = f"{api_base}/jobs/update?o={databricks_service}"
requests.post(update_jobs_url, headers=headers, json=data).textfix your stuff databricks.