# Task Run
Experimental
# TaskRunView
class
prefect.backend.task_run.TaskRunView
(task_run_id, task_id, task_slug, name, state, map_index, flow_run_id)[source]A view of Task Run data stored in the Prefect API.
Provides lazy loading of task run return values from Prefect Result
locations.
This object is designed to be an immutable view of the data stored in the Prefect backend API at the time it is created.
EXPERIMENTAL: This interface is experimental and subject to change
Args:
task_run_id
: The task run uuidtask_id
: The uuid of the task associated with this task runtask_slug
: The slug of the task associated with this task runname
: The task run namestate
: The state of the task runmap_index
: The map index of the task run. Is -1 if it is not a mapped subtask, otherwise it is in the index of the task run in the mappingflow_run_id
: The uuid of the flow run associated with this task run
methods: |
---|
prefect.backend.task_run.TaskRunView.from_task_run_id (task_run_id=None)[source] |
Get an instance of this class; query by task run id
TaskRunView instance |
prefect.backend.task_run.TaskRunView.from_task_slug (task_slug, flow_run_id, map_index=-1)[source] |
Get an instance of this class; query by task slug and flow run id.
TaskRunView instance |
prefect.backend.task_run.TaskRunView.get_result ()[source] |
The result of this task run loaded from the |
prefect.backend.task_run.TaskRunView.iter_mapped ()[source] |
Iterate over the results of a mapped task, yielding a |
This documentation was auto-generated from commit n/a
on February 23, 2022 at 19:26 UTC