<#4275 [BUG] Default input not supported in Flyte ...
# flytekit
a
#4275 [BUG] Default input not supported in Flyte task Issue created by ByronHsu Describe the bug
Copy code
@task
def task_with_args(x: int = 2):
    ...

@workflow
def wf():
    task_with_args()
Copy code
error:
flytekit.exceptions.user.FlyteAssertion: Input was not specified for: x of type simple: INTEGER
Expected behavior Default input should be passed to task. i.e. Set
x
as
2
and pass the compilation. Additional context to reproduce No response Screenshots No response Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte