microscopic-honey-72761
11/30/2022, 6:39 PMList[Type]
where the Type
is complex? Or maybe I’m just specifying my input incorrectly: I specifically have a workflow with an input List[FlyteFile]
that is passing that input to task that takes a List[FlyteFile]
. When I try to run this workflow through the Flyte UI, passing an input like ["test_file.txt"]
and the workflow starts running, the UI shows that this was my input:
{
"test_list": [
"(empty)"
]
}
So as you can imagine, the workflow then fails to run:
Message:
Cannot convert from scalar {
none_type {
}
}
to <class 'flytekit.types.file.file.FlyteFile'>
SYSTEM ERROR! Contact platform administrators.
(More details in thread)microscopic-honey-72761
11/30/2022, 6:41 PMhello_world
one slightly:
@task
def say_hello(test_list: List[FlyteFile]) -> str:
return "hello world
@workflow
def my_wf(test_list: List[FlyteFile]) -> str:
res = say_hello(test_list=test_list)
return res
And then registered:
pyflyte -c ~/.flyte/config-sandbox.yaml register --version ref2 core/flyte_basics/hello_world.py
microscopic-honey-72761
11/30/2022, 6:42 PMmagnificent-teacher-86590
11/30/2022, 6:55 PMmicroscopic-honey-72761
11/30/2022, 7:03 PMglamorous-carpet-83516
11/30/2022, 7:15 PM[{
"dimensionality": 0,
"uri": "<s3://bucket/test_file.txt>"
}]
glamorous-carpet-83516
11/30/2022, 7:16 PM"dimensionality": 0
means it’s a blob filemicroscopic-honey-72761
11/30/2022, 7:41 PMmagnificent-teacher-86590
11/30/2022, 7:43 PM1
is for FlyteDirectoryglamorous-carpet-83516
11/30/2022, 7:43 PMhallowed-mouse-14616
11/30/2022, 11:14 PMglamorous-carpet-83516
11/30/2022, 11:23 PM