:wave: working on getting prefect 2.0 setup for ou...
# prefect-community
a
👋 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
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
oh, that's great! thanks!