https://prefect.io logo
Title
a

alvin goh

11/29/2019, 12:50 AM
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

Chris White

11/29/2019, 12:53 AM
Hi @alvin goh - this sounds like a bug to me! Would you mind opening an issue on github with a reproducible example?
j

josh

11/29/2019, 1:19 AM
a

alvin goh

11/29/2019, 1:36 AM
@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

Chris White

11/29/2019, 1:37 AM
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

alvin goh

12/01/2019, 9:11 AM
Ok, thanks!