RunDetails
A class representing a run of a task. It is used to manage the run of a task and its state on the remote Union API.
Attributes
| Attribute | Type | Description |
|---|---|---|
| pb2 | run_definition_pb2.RunDetails | This attribute stores the run details in a protobuf format, which is used to manage the run of a task and its state on the remote Union API. |
| action_details | [ActionDetails](../action/actiondetails.md?sid=flyte_remote__action_actiondetails) | This attribute stores the details of the action associated with the run, initialized from the pb2.action and used to manage action-specific properties and behaviors. |
Methods
get_details()
@classmethod
def get_details(
run_id: identifier_pb2.RunIdentifier
) - > [RunDetails](rundetails.md?sid=flyte_remote__run_rundetails)
Get the details of the run. This is a placeholder for getting the run details.
Parameters
| Name | Type | Description |
|---|---|---|
| run_id | identifier_pb2.RunIdentifier | The identifier of the run to retrieve details for. |
Returns
| Type | Description |
|---|---|
[RunDetails](rundetails.md?sid=flyte_remote__run_rundetails) | The RunDetails object containing the details of the run. |
get()
@classmethod
def get(
name: str | None = None
) - > [RunDetails](rundetails.md?sid=flyte_remote__run_rundetails)
Get a run by its ID or name. If both are provided, the ID will take precedence.
Parameters
| Name | Type | Description |
|---|---|---|
| name | `str | None` = None |
Returns
| Type | Description |
|---|---|
[RunDetails](rundetails.md?sid=flyte_remote__run_rundetails) | The RunDetails object corresponding to the specified run. |
name()
@classmethod
def name() - > str
Get the name of the action.
Returns
| Type | Description |
|---|---|
str | The name of the action associated with the run. |
task_name()
@classmethod
def task_name() - > str | None
Get the name of the task.
Returns
| Type | Description |
|---|---|
| `str | None` |
action_id()
@classmethod
def action_id() - > identifier_pb2.ActionIdentifier
Get the action ID.
Returns
| Type | Description |
|---|---|
identifier_pb2.ActionIdentifier | The unique identifier for the action. |
done()
@classmethod
def done() - > bool
Check if the run is in a terminal state (completed or failed). This is a placeholder for checking the run state.
Returns
| Type | Description |
|---|---|
bool | True if the run is completed or failed, False otherwise. |
inputs()
@classmethod
def inputs() - > [ActionInputs](../action/actioninputs.md?sid=flyte_remote__action_actioninputs)
Placeholder for inputs. This can be extended to handle inputs from the run context.
Returns
| Type | Description |
|---|---|
[ActionInputs](../action/actioninputs.md?sid=flyte_remote__action_actioninputs) | The inputs associated with the action. |
outputs()
@classmethod
def outputs() - > [ActionOutputs](../action/actionoutputs.md?sid=flyte_remote__action_actionoutputs)
Placeholder for outputs. This can be extended to handle outputs from the run context.
Returns
| Type | Description |
|---|---|
[ActionOutputs](../action/actionoutputs.md?sid=flyte_remote__action_actionoutputs) | The outputs generated by the action. |