This is a long-running operation, which blocks until Jobs on Databricks reach
TERMINATED or SKIPPED state with the timeout of 20 minutes, that you can change via timeout
parameter.
By default, the state of Databricks Jobs is reported to console. You can change this behavior
by changing the callback
parameter.
Usage
cancel_job_run_and_wait(client, run_id, timeout = 20, callback = cli_reporter)
Arguments
- client
Required. Instance of DatabricksClient()
- run_id
Required. This field is required.
- timeout
Time to wait for the operation to complete in minutes.
- callback
Function to report the status of the operation. By default, it reports to console.
Details
Cancels a job run or a task run. The run is canceled asynchronously, so it
may still be running when this request completes.