acoustic-carpenter-78188
11/02/2023, 9:27 PMPythonInstanceTask
. Observed this when building a task plugin.
Task's `__init__()`:
def __init__(
self,
...
**kwargs,
):
...
inputs.update({"runtime": (bool, False)})
super(..., self).__init__(
...
interface=Interface(inputs=inputs, outputs=outputs),
**kwargs,
)
Example:
task_object = ...(
...
inputs=kwtypes(dataset=str),
...
)
@workflow
def valid_wf(dataset: str = "...") -> None:
task_object(dataset=dataset)
valid_wf()
Error:
flytekit.common.exceptions.user.FlyteAssertion: Input was not specified for: runtime of type simple: BOOLEAN
Expected behavior
The above code shouldn't be throwing an error.
[Optional] Additional context
To Reproduce
Steps to reproduce the behavior:
1. Same as the above code flow.
Screenshots
If applicable, add screenshots to help explain your problem.
flyteorg/flyteacoustic-carpenter-78188
11/02/2023, 9:27 PM