Hey everyone,
In Prefect, when a flow fails midway, is there a way to:
1. see all the downstream processs in the ui (Flow diagram) that were affected
2. notify the users via email that the flow is broken affecting these downstream processes?
n
Nate
04/16/2024, 4:37 PM
hi @Charles Leung - not necessarily, because prefect 2 dynamically discovers the graph according to your conditional python logic, what is "downstream" of a given point in your workflow is not static
however you could probably read
task_run_states
out of the
FlowRunContext
and use that to decide what work is still outstanding at any point in time
c
Charles Leung
04/16/2024, 5:47 PM
Thanks Nate, I guess Im a little confused on the usage of the the functions, I ran the following code:
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.