Skip to main content
POST
/
{workspaceId}
/
projects
/
{projectName}
/
jobs
/
{jobId}
/
runs
/
{jobRunId}
/
terminate
Python (SDK)
from intuned_client import IntunedClient
import os


with IntunedClient(
    workspace_id="123e4567-e89b-12d3-a456-426614174000",
    api_key=os.getenv("INTUNED_API_KEY", ""),
) as ic_client:

    res = ic_client.project.jobs.runs.terminate(project_name="my-project", job_id="my-sample-job", job_run_id="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")

    # Handle response
    print(res)
{
  "message": "Job run terminated successfully"
}

Authorizations

x-api-key
string
header
required

API Key used to authenticate your requests. How to create one.

Path Parameters

workspaceId
string<uuid>
required

Your workspace ID. How to find it?

projectName
string
required

Your project name. It is the name you provide when creating a project.

jobId
string
required

Your job ID. It is the ID of the job you provide when creating it.

jobRunId
string<uuid>
required

The job run ID. This can be obtained from the get job runs endpoint or from the result of the trigger endpoint for a job.

Response

Job run terminated successfully

message
string
required

Success message confirming job run termination

Example:

"Job run terminated successfully"