Hi, I've noticed that when a mapped task in a flow...
# ask-community
a
Hi, I've noticed that when a mapped task in a flow is skipped or failed, flow.visualize() fails with an error about the task not having mapped_states. Is this a design decision to not generate visualisation for failed mapped tasks?
c
Hi @alvin goh - this sounds like a bug to me! Would you mind opening an issue on github with a reproducible example?
j
a
@josh yes that's the same thing, sorry for not checking the issues. Any ETA on this? Seems like a Boolean check can be used to check if the mapped tasks are not failed or skipped before enumerating over them
c
This should be a simple fix - I’ll tackle it later this evening or tomorrow and let you know!
@alvin goh - PR to fix this issue is here: https://github.com/PrefectHQ/prefect/pull/1782
a
Ok, thanks!