[
{
"work_pool_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"work_queue_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"flow_run": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"flow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"state_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deployment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deployment_version": "1.0",
"work_queue_name": "<string>",
"flow_version": "1.0",
"parameters": {},
"idempotency_key": "<string>",
"context": {},
"empirical_policy": {
"max_retries": 0,
"retry_delay_seconds": 0,
"retries": 123,
"retry_delay": 123,
"pause_keys": [
"<string>"
],
"resuming": false,
"retry_type": "in_process"
},
"tags": [
"<string>"
],
"labels": {
"key": "value1",
"key2": 42
},
"parent_task_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state_type": "SCHEDULED",
"state_name": "<string>",
"run_count": 0,
"expected_start_time": "2023-11-07T05:31:56Z",
"next_scheduled_start_time": "2023-11-07T05:31:56Z",
"start_time": "2023-11-07T05:31:56Z",
"end_time": "2023-11-07T05:31:56Z",
"total_run_time": 0,
"estimated_run_time": 0,
"estimated_start_time_delta": 0,
"auto_scheduled": false,
"infrastructure_document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"infrastructure_pid": "<string>",
"created_by": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"display_value": "<string>"
},
"work_queue_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "SCHEDULED",
"name": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"message": "Run started",
"data": "<unknown>",
"state_details": {
"flow_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"task_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"child_flow_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scheduled_time": "2023-11-07T05:31:56Z",
"cache_key": "<string>",
"cache_expiration": "2023-11-07T05:31:56Z",
"deferred": false,
"untrackable_result": false,
"pause_timeout": "2023-11-07T05:31:56Z",
"pause_reschedule": false,
"pause_key": "<string>",
"run_input_keyset": {},
"refresh_cache": true,
"retriable": true,
"transition_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"task_parameters_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"traceparent": "<string>",
"deployment_concurrency_lease_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"job_variables": {}
}
}
]Load scheduled runs for a worker
[
{
"work_pool_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"work_queue_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"flow_run": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"flow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"state_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deployment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deployment_version": "1.0",
"work_queue_name": "<string>",
"flow_version": "1.0",
"parameters": {},
"idempotency_key": "<string>",
"context": {},
"empirical_policy": {
"max_retries": 0,
"retry_delay_seconds": 0,
"retries": 123,
"retry_delay": 123,
"pause_keys": [
"<string>"
],
"resuming": false,
"retry_type": "in_process"
},
"tags": [
"<string>"
],
"labels": {
"key": "value1",
"key2": 42
},
"parent_task_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state_type": "SCHEDULED",
"state_name": "<string>",
"run_count": 0,
"expected_start_time": "2023-11-07T05:31:56Z",
"next_scheduled_start_time": "2023-11-07T05:31:56Z",
"start_time": "2023-11-07T05:31:56Z",
"end_time": "2023-11-07T05:31:56Z",
"total_run_time": 0,
"estimated_run_time": 0,
"estimated_start_time_delta": 0,
"auto_scheduled": false,
"infrastructure_document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"infrastructure_pid": "<string>",
"created_by": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"display_value": "<string>"
},
"work_queue_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "SCHEDULED",
"name": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"message": "Run started",
"data": "<unknown>",
"state_details": {
"flow_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"task_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"child_flow_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scheduled_time": "2023-11-07T05:31:56Z",
"cache_key": "<string>",
"cache_expiration": "2023-11-07T05:31:56Z",
"deferred": false,
"untrackable_result": false,
"pause_timeout": "2023-11-07T05:31:56Z",
"pause_reschedule": false,
"pause_key": "<string>",
"run_input_keyset": {},
"refresh_cache": true,
"retriable": true,
"transition_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"task_parameters_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"traceparent": "<string>",
"deployment_concurrency_lease_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"job_variables": {}
}
}
]The work pool name
Successful Response
An ORM representation of flow run data.
Show child attributes
The id of the flow being run.
The name of the flow run. Defaults to a random slug if not specified.
The id of the flow run's current state.
The id of the deployment associated with this flow run, if available.
The version of the deployment associated with this flow run.
"1.0"
The work queue that handled this flow run.
The version of the flow executed in this flow run.
"1.0"
Parameters for the flow run.
An optional idempotency key for the flow run. Used to ensure the same flow run is not created multiple times.
Additional context for the flow run.
Defines of how a flow run should retry.
Show child attributes
The maximum number of retries. Field is not used. Please use retries instead.
The delay between retries. Field is not used. Please use retry_delay instead.
The number of retries.
The delay time between retries, in seconds.
Tracks pauses this run has observed.
Indicates if this run is resuming from a pause.
The type of retry this run is undergoing.
in_process, reschedule A list of tags on the flow run
If the flow run is a subflow, the id of the 'dummy' task in the parent flow used to track subflow state.
The type of the current flow run state.
SCHEDULED, PENDING, RUNNING, COMPLETED, FAILED, CANCELLED, CRASHED, PAUSED, CANCELLING The name of the current flow run state.
The number of times the flow run was executed.
The flow run's expected start time.
The next time the flow run is scheduled to start.
The actual start time.
The actual end time.
Total run time. If the flow run was executed multiple times, the time of each run will be summed.
A real-time estimate of the total run time.
The difference between actual and expected start time.
Whether or not the flow run was automatically scheduled.
The block document defining infrastructure to use this flow run.
The id of the flow run as returned by an infrastructure block.
Optional information about the creator of this flow run.
The id of the run's work pool queue.
The current state of the flow run.
Show child attributes
Enumeration of state types.
SCHEDULED, PENDING, RUNNING, COMPLETED, FAILED, CANCELLED, CRASHED, PAUSED, CANCELLING "Run started"
Data associated with the state, e.g. a result. Content must be storable as JSON.
Show child attributes
Variables used as overrides in the base job template
Was this page helpful?