Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] pyflyte run launch plan with default inputs cannot be run successfully #6030

Open
2 tasks done
KyleShao1016 opened this issue Nov 19, 2024 · 2 comments · May be fixed by flyteorg/flytekit#2949
Open
2 tasks done
Assignees
Labels
bug Something isn't working flytekit FlyteKit Python related issue

Comments

@KyleShao1016
Copy link

Describe the bug

I attempted to execute a pyflyte run launch plan using a default input, but I encountered an error indicating that no input had been provided.

from flytekit import task, workflow, LaunchPlan, current_context

@task()
def t1(a: int) -> int:
    return a + 1

@workflow
def wf1(b: int) -> int:
    return t1(t1(b))

wf1_lp = LaunchPlan.create(
        name="wf1_lp", workflow=wf1, default_inputs={"b": 1}
    )

Expected behavior

For the provided code segment, the expected output is 3. However, I encountered an error stating that the argument b was not provided.

Additional context to reproduce

No response

Screenshots

截圖 2024-11-18 下午10 59 20

Are you sure this issue hasn't been raised already?

  • Yes

Have you read the Code of Conduct?

  • Yes
@KyleShao1016 KyleShao1016 added bug Something isn't working untriaged This issues has not yet been looked at by the Maintainers labels Nov 19, 2024
Copy link

welcome bot commented Nov 19, 2024

Thank you for opening your first issue here! 🛠

@KyleShao1016
Copy link
Author

#take

@eapolinario eapolinario added flytekit FlyteKit Python related issue and removed untriaged This issues has not yet been looked at by the Maintainers labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working flytekit FlyteKit Python related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants