0.1.dev2192+g7c539c3.d20250403
flytekit.core.reference
Directory
Methods
| Method | Description |
|---|---|
get_reference_entity() |
See the documentation for flytekit.reference_task and flytekit.reference_workflow as well. |
Methods
get_reference_entity()
def get_reference_entity(
resource_type: int,
project: str,
domain: str,
name: str,
version: str,
inputs: Dict[str, Type],
outputs: Dict[str, Type],
) -> n:See the documentation for flytekit.reference_task and flytekit.reference_workflow as well.
This function is the general form of the two aforementioned functions. It’s better for programmatic usage, as the interface is passed in as arguments instead of analyzed from type annotations.
ref_entity = get_reference_entity(
_identifier_model.ResourceType.WORKFLOW,
"project",
"dev",
"my.other.workflow",
"abc123",
inputs=kwtypes(a=str, b=int),
outputs={},
)| Parameter | Type |
|---|---|
resource_type |
int |
project |
str |
domain |
str |
name |
str |
version |
str |
inputs |
Dict[str, Type] |
outputs |
Dict[str, Type] |