v1

latestOpenAPI 3.0.32026-07-22194221292.5 KB
jobs

Cancel job execution

Cancels a running job execution. Tasks already in progress will complete, but no new tasks will be started. The execution status changes to 'cancelling' then 'cancelled'.

delete/jobs/{jobId}/executions/{executionId}

Path parameters

jobIdstring required

Name of the job

executionIdstring required

Id of the execution

Response

successful operation

status'queued' | 'pending' | 'running' | 'cancelling' | 'cancelled' | 'failed' | 'succeeded' | 'timeout'

Job execution status

Example response

{
  "metadata": {
    "id": "exec-abc123",
    "job": "data-processing-job",
    "workspace": "my-workspace"
  },
  "spec": {
    "memoryOverride": 2048,
    "parallelism": 5,
    "tasks": [
      {
        "metadata": {
          "name": "task-0"
        },
        "spec": {
          "maxRetries": 3,
          "timeout": "30m"
        }
      }
    ],
    "timeout": 3600
  },
  "stats": {
    "failure": 1,
    "retried": 2,
    "running": 1,
    "success": 8,
    "total": 10
  },
  "tasks": [
    {
      "metadata": {
        "name": "task-0"
      },
      "spec": {
        "maxRetries": 3,
        "timeout": "30m"
      }
    }
  ]
}