acoustic-carpenter-78188
07/06/2023, 7:59 AMfrom typing import Union
from flytekit import task, workflow
@task()
def my_task(number: Union[int, str]):
print(number)
@workflow
def my_work(number: Union[int, str] = 1):
my_task(number=number)
Registering the workflow works: pylyte register workflow.py ✅.
Running the workflow directly works: pylyte run --remote run workflow.py my_workflow ✅.
Trying to run the registered workflow from the WebUI fails ❌ (see screenshot).
Expected behavior
I expect an error at registration or in the WebUI if the workflow is broken. Currently, the WebUI errors out without a hint.
Additional context to reproduce
No response
Screenshots
The error in the WebUI:
Bildschirmfoto 2023-07-06 um 09 56 33▾
Bildschirmfoto 2023-07-06 um 09 59 07▾
acoustic-carpenter-78188
07/18/2023, 7:16 PM