2.0.0b53

ActionID

Package: flyte.models

A class representing the ID of an Action, nested within a Run. This is used to identify a specific action on a task.

class ActionID(
    name: str,
    run_name: str | None,
    project: str | None,
    domain: str | None,
    org: str | None,
)
Parameter Type Description
name str
run_name str | None
project str | None
domain str | None
org str | None

Methods

Method Description
create_random()
new_sub_action() Create a new sub-run with the given name.
new_sub_action_from() Make a deterministic name.
unique_id_str() Generate a unique ID string for this action in the format:.

create_random()

def create_random()

new_sub_action()

def new_sub_action(
    name: str | None,
) -> ActionID

Create a new sub-run with the given name. If name is None, a random name will be generated.

Parameter Type Description
name str | None

new_sub_action_from()

def new_sub_action_from(
    task_call_seq: int,
    task_hash: str,
    input_hash: str,
    group: str | None,
) -> ActionID

Make a deterministic name

Parameter Type Description
task_call_seq int
task_hash str
input_hash str
group str | None

unique_id_str()

def unique_id_str(
    salt: str | None,
) -> str

Generate a unique ID string for this action in the format: {project}-{domain}-{run_name}-{action_name}

This is optimized for performance assuming all fields are available.

:return: A unique ID string

Parameter Type Description
salt str | None