Skip to main content

list_flight_runs

Preview
This feature is in preview and is subject to change.

List the runs of a Flight, newest first. Each run has a sequential run_number, a status (PENDING, RUNNING, SUCCEEDED, FAILED, or CANCELLED), timing metadata, and the effective config it ran with: the Flight version's stored config merged with any per-run overrides.

The SQL equivalent is MD_LIST_FLIGHT_RUNS.

Input parameters

ParameterTypeRequiredDescription
idstring (UUID)YesThe Flight UUID.
limitintegerNoMax results to return (default: 100, max: 500).

Output schema

{
"success": boolean,
"flight_id": string,
"runs": [
{
"run_id": string,
"flight_id": string,
"flight_name": string,
"flight_version": number,
"config": object, // effective config for the run, including per-run overrides
"run_number": number,
"is_scheduled": boolean,
"status": string,
"created_at": string,
"started_at": string,
"ended_at": string,
"scheduled_at": string,
"cancelled_at": string, // null unless the run was cancelled
"exit_code": number
}
],
"count": number,
"totalCount": number,
"error": string
}

Example usage

{ "id": "80000000-0000-0000-0000-000000000001", "limit": 10 }