Hey!
I am trying to create a workflow that uses a map_task which return FlyteDirectory with min_success_ratio set to 0.25 for example , and as a result the returned value will be a List[FlyteDirectory] with a possibility of a None or "(empty)" returned value of failed instances., which, as a result, causes the transformer to fail
Wonder if anyone can help me handle this specific case assuming that next step in the wf will expect a list of flyte directories.
Thanks!
f
freezing-airport-6809
05/14/2023, 9:21 PM
the Flytedirectory transformer is failing?
freezing-airport-6809
05/14/2023, 9:22 PM
can you change the list input type from
List[FlyteDirectory]
->
List[Optional[FlyteDirectory]]
freezing-airport-6809
05/14/2023, 9:22 PM
does that work?
i
important-hamburger-34837
05/15/2023, 6:18 AM
yes it worked ! thanks . didnt know Optional would work. thank you 🙂