cuddly-jelly-27016
05/24/2025, 12:09 AMworkflow.python_interface attribute
Issue created by GeeCastro
### Describe the bug
Trying to reference a workflow with the reference_workflow decorator throws an error when used with Launchplan.create. The create method tries to access workflow.python_interface but the attribute doesn't exist.
### Expected behavior
Should create a launch plan without an error or error with a helpful message.
### Additional context to reproduce
@reference_workflow(
project="proj",
domain="development",
name="myprod.wf",
version="0.2.19",
)
def wf(
param: str,
) -> str:
...
wf_lp = LaunchPlan.create(
name="my_wf_lp",
workflow=wf,
fixed_inputs={"param": "yes"},
)
Yields
<...>/lib/python3.10/site-packages/flytekit/core/launch_plan.py:126 in create │
│ │
│ ❱ 126 │ │ wf_signature_parameters = transform_inputs_to_parameters(ctx, workflow.python_in │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'function' object has no attribute 'python_interface'
### Screenshots
No response
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flytecuddly-jelly-27016
05/24/2025, 12:09 AMworkflow.python_interface attribute
Issue closed as not planned by github-actions[bot]
flyteorg/flyte