Skip to main content
GET
/
v1
/
tasks
/
runs
/
{run_id}
Python
from parallel import Parallel

client = Parallel(api_key="API Key")

task_run = client.task_run.retrieve("run_id")
print(task_run.status)
{
  "run_id": "<string>",
  "status": "queued",
  "is_active": true,
  "processor": "<string>",
  "created_at": "2025-04-24T18:56:22.513132Z",
  "modified_at": "2025-04-24T18:56:22.513132Z",
  "warnings": [],
  "error": {
    "ref_id": "<string>",
    "message": "<string>",
    "detail": {}
  },
  "metadata": {},
  "taskgroup_id": "<string>"
}

Authorizations

x-api-key
string
header
required

Path Parameters

run_id
string
required

Response

Successful Response

Status of a task run.

run_id
string
required

ID of the task run.

status
enum<string>
required

Status of the run.

Available options:
queued,
action_required,
running,
completed,
failed,
cancelling,
cancelled
is_active
boolean
required

Whether the run is currently active, i.e. status is one of {'cancelling', 'queued', 'running'}.

processor
string
required

Processor used for the run.

created_at
string | null
required

Timestamp of the creation of the task, as an RFC 3339 string.

Example:

"2025-04-24T18:56:22.513132Z"

modified_at
string | null
required

Timestamp of the last modification to the task, as an RFC 3339 string.

Example:

"2025-04-24T18:56:22.513132Z"

warnings
Warning · object[] | null

Warnings for the run, if any.

Example:
[]
error
Error · object

Error for the run, present only if status is 'failed'.

metadata
Metadata · object

User-provided metadata stored with the run.

Example:
{}
taskgroup_id
string | null

ID of the taskgroup to which the run belongs.