acoustic-carpenter-78188
03/06/2025, 8:34 AMpyflyte run remote-task (and remote-workflow and remote-launchplan):
$ pyflyte run remote-task example.example_task --no-flag
TypeTransformerFailedError: Python value cannot be None, expected <class 'bool'>/Flyte Serialized object (LiteralType):
simple: 4
I'm using flytekit 1.15.0
Expected behavior
It should be possible to set boolean parameters to False using pyflyte run remote-task. It should work the same as pyflyte run --remote.
Additional context to reproduce
example.py
from flytekit import task
@task()
def example_task(flag: bool) -> bool:
return flag
Works
pyflyte run --remote example.py example_task --flag
pyflyte run --remote example.py example_task --no-flag
pyflyte run remote-task example.example_task --flag
Fails
pyflyte run remote-task example.example_task --no-flag
Screenshots
No response
Are you sure this issue hasn't been raised already?
• Yes
Have you read the Code of Conduct?
• Yes
flyteorg/flyte