Sophia Ponte
11/19/2025, 12:10 AMdef outer_flow():
inner_flow.with_options(
persist_result=True,
on_cancellation=[cancellation_callback]
)
If I cancel the outer flow from the Prefect UI, it seems like the on_cancellation hook for the inner_flow subflow does not run. Why is this? How can I ensure that a subflow's on_cancellation hook runs when it's parent flow is cancelled?Marvin
11/19/2025, 12:10 AMresearch_prefect_topic
📊 Tools used:
• research_prefect_topic (1x)Nate
11/19/2025, 1:03 AM