Vadym Dytyniak04/05/2023, 10:24 AM
Marvin04/05/2023, 10:24 AM
when you are creating a flow, which will cause the flow run to be moved to the "Cancelling" state when cancellation is requested. From there, an agent then sends a signal to the infrastructure, requesting termination of the run. The handler will be called when the flow run enters the cancelling state and can be used to log or perform some other action before the run is moved to the "Cancelled" state. Flows can be cancelled from a variety of sources, including the command line, Prefect's user interface, the REST API, or the Python client. If you'd like to find out more, I suggest checking out the Prefect Docs on Flows and the PrefectHQ/prefect GitHub page. That should have all the information you need!