https://prefect.io logo
a

Alix Cook

07/28/2022, 1:24 PM
👋 working on getting prefect 2.0 setup for our team, and still learning how to navigate the new docs. Is there a way to set the current flow run to cancelled from within a task or flow?
✅ 1
r

Rob Freedy

07/28/2022, 1:29 PM
Hey Alix!! You can return a manual state as show in the following example: https://orion-docs.prefect.io/concepts/flows/#return-a-manual-state Also, here is some documentation about states that might be helpful: https://orion-docs.prefect.io/concepts/states/
a

Alix Cook

07/28/2022, 2:41 PM
oh, that's great! thanks!
5 Views