https://flyte.org logo
#ask-the-community
Title
# ask-the-community
n

Nizar Hattab

05/14/2023, 6:20 PM
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!
k

Ketan (kumare3)

05/14/2023, 9:21 PM
the Flytedirectory transformer is failing?
can you change the list input type from
List[FlyteDirectory]
->
List[Optional[FlyteDirectory]]
does that work?
n

Nizar Hattab

05/15/2023, 6:18 AM
yes it worked ! thanks . didnt know Optional would work. thank you 🙂
68 Views