capabilities.work

Restart a Running Cluster and Wait

A 4-step recipe with Azure Databricks. We can help you get access.

Recipe · 4 steps

Restart a Running Cluster and Wait

with Azure Databricks · IT Infrastructure Management

Restart a running cluster and wait until it is RUNNING again.

  1. Confirm the cluster is currently RUNNING before issuing a restart, since restart is only valid for a running cluster.
  2. Issue the restart. The cluster transitions to RESTARTING and then back to RUNNING when the restart completes.
  3. Retrieve the current cluster state. Repeat until the cluster reports RUNNING again; branch to failure if it reports TERMINATED or ERROR.
  4. Read the cluster once more to capture the termination reason when the restart did not return to RUNNING.
What you'll need to have ready
  • token: Databricks personal access token for the Authorization header.
  • clusterId: The id of the running cluster to restart.
For your developer

Arazzo workflow microsoft-azure-databricks:restart-cluster-and-wait, 4 operations: getCluster → restartCluster → getCluster → getCluster. Specs on APIs.io.