Skip to main content

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

AttributeTypeDescription
pb2run_definition_pb2.RunDetailsThis 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

NameTypeDescription
run_ididentifier_pb2.RunIdentifierThe identifier of the run to retrieve details for.

Returns

TypeDescription
[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

NameTypeDescription
name`strNone` = None

Returns

TypeDescription
[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

TypeDescription
strThe name of the action associated with the run.

task_name()

@classmethod
def task_name() - > str | None

Get the name of the task.

Returns

TypeDescription
`strNone`

action_id()

@classmethod
def action_id() - > identifier_pb2.ActionIdentifier

Get the action ID.

Returns

TypeDescription
identifier_pb2.ActionIdentifierThe 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

TypeDescription
boolTrue 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

TypeDescription
[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

TypeDescription
[ActionOutputs](../action/actionoutputs.md?sid=flyte_remote__action_actionoutputs)The outputs generated by the action.