Databricks · Arazzo Workflow

Databricks Cancel a Job's Active Run

Version 1.0.0

Find a job's active run and cancel it, then confirm cancellation.

1 workflow 1 source API 1 provider
View Spec View on GitHub Artificial IntelligenceAnalyticsApache SparkBig DataCleanroomsCloud ComputingDataData AnalyticsData EngineeringData GovernanceDelta LakeDelta SharingETLIdentity ManagementLakehouseMachine-LearningMLflowModel ServingSecuritySQLUnity CatalogVector SearchVisualizeArazzoWorkflows

Provider

databricks

Workflows

cancel-active-run
Locate a job's active run and cancel it.
Lists active runs for the job, cancels the first one found, then reads it back to confirm it is no longer RUNNING.
3 steps inputs: job_id outputs: cancelledRunId, lifeCycleState
1
listActiveRuns
List active runs for the job and capture the first active run_id.
2
cancelRun
Cancel the active run. Cancellation is asynchronous; the run transitions to a TERMINATING state.
3
confirmCancel
Read the run back to confirm it has left the RUNNING state after the cancel request.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Databricks Cancel a Job's Active Run
  summary: Find a job's active run and cancel it, then confirm cancellation.
  description: >-
    Stops in-flight work for a Databricks job by listing the job's active runs,
    cancelling the first active run found, and then re-reading the run to
    confirm it has moved into a TERMINATING or TERMINATED state. The run_id from
    the active runs list drives the cancel and confirmation. Every step spells
    out its request inline so the flow can be read and executed without opening
    the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: jobsApi
  url: ../openapi/databricks-jobs-api-openapi.yml
  type: openapi
workflows:
- workflowId: cancel-active-run
  summary: Locate a job's active run and cancel it.
  description: >-
    Lists active runs for the job, cancels the first one found, then reads it
    back to confirm it is no longer RUNNING.
  inputs:
    type: object
    required:
    - job_id
    properties:
      job_id:
        type: integer
        description: The job whose active run should be cancelled.
  steps:
  - stepId: listActiveRuns
    description: >-
      List active runs for the job and capture the first active run_id.
    operationId: listJobRuns
    parameters:
    - name: job_id
      in: query
      value: $inputs.job_id
    - name: active_only
      in: query
      value: true
    - name: limit
      in: query
      value: 1
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      activeRunId: $response.body#/runs/0/run_id
    onSuccess:
    - name: hasActiveRun
      type: goto
      stepId: cancelRun
      criteria:
      - context: $response.body
        condition: $.runs.length > 0
        type: jsonpath
  - stepId: cancelRun
    description: >-
      Cancel the active run. Cancellation is asynchronous; the run transitions
      to a TERMINATING state.
    operationId: cancelJobRun
    requestBody:
      contentType: application/json
      payload:
        run_id: $steps.listActiveRuns.outputs.activeRunId
    successCriteria:
    - condition: $statusCode == 200
  - stepId: confirmCancel
    description: >-
      Read the run back to confirm it has left the RUNNING state after the
      cancel request.
    operationId: getJobRun
    parameters:
    - name: run_id
      in: query
      value: $steps.listActiveRuns.outputs.activeRunId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      lifeCycleState: $response.body#/state/life_cycle_state
  outputs:
    cancelledRunId: $steps.listActiveRuns.outputs.activeRunId
    lifeCycleState: $steps.confirmCancel.outputs.lifeCycleState

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/databricks-cancel-all-active-runs-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.