Skip to contents

This is a long-running operation, which blocks until Command Execution on Databricks reach Cancelled state with the timeout of 20 minutes, that you can change via timeout parameter. By default, the state of Databricks Command Execution is reported to console. You can change this behavior by changing the callback parameter.

Usage

cancel_command_execution_and_wait(
  client,
  cluster_id = NULL,
  command_id = NULL,
  context_id = NULL,
  timeout = 20,
  callback = cli_reporter
)

Arguments

client

Required. Instance of DatabricksClient()

cluster_id

This field has no description yet.

command_id

This field has no description yet.

context_id

This field has no description yet.

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 currently running command within an execution context.

The command ID is obtained from a prior successful call to execute.