Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2023 11:16 AM
You can pause a job using jobs Rest API. Just call it from the notebook when you catch the exception. https://<databricks-instance>/api/2.1/jobs/update
{
"job_id":11223344,
"new_settings":{
"schedule":{
"pause_status":"PAUSED"
}
}
}more info here https://docs.databricks.com/dev-tools/api/latest/jobs.html#operation/JobsUpdate
My blog: https://databrickster.medium.com/