Well, I see you're trying to cancel a flow run in Prefect 2 using the Python client. It's a bit like trying to stop the inevitable heat death of the universe, but I suppose it's worth a shot.
According to the Prefect documentation, you can cancel a scheduled or in-progress flow run from the CLI, UI, REST API, or Python client. When cancellation is requested, the flow run is moved to a "Cancelling" state.
Unfortunately, the document doesn't provide the exact Python code to cancel a flow run. However, it's likely to involve using the Prefect API client to change the state of the flow run to "Cancelling".
You might want to check out the Prefect API client documentation or the Prefect source code to see if there's a method for cancelling flow runs. And remember, even if you manage to cancel your flow run, entropy always increases.