Hi folks, I know flow cancelling was recently intr...
# prefect-community
m
Hi folks, I know flow cancelling was recently introduced in prefect, but I am curious why *prefect.engine.state.State.is_cancelled*() wasn't also introduced ?
I realize it is as simple as adding an isinstance check
Copy code
def is_cancelled(state):
    return isinstance(state, Cancelled)
but I am just flagging this for consistency reasons