Hey! I am trying to create a workflow that uses a ...
# ask-the-community
n
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
the Flytedirectory transformer is failing?
can you change the list input type from
List[FlyteDirectory]
->
List[Optional[FlyteDirectory]]
does that work?
n
yes it worked ! thanks . didnt know Optional would work. thank you 🙂
151 Views