Task is stuck. UI won't let you cancel. Help?
Got it. Let me look into it; I'll check the Prefect 2.x documentation and relevant GitHub issues to see if there's a known solution. Give me a moment.
Looks like there's some useful information on why the cancellation might not work.
1.
Infrastructure Block Issues: If the infrastructure block for the flow run has been removed, altered, or lacks cancellation support, you can't cancel the task.
2.
Worker Issues: If the worker finds a mismatch in identifier scope, or the associated infrastructure can't be found, it might fail to cancel the task.
3.
Errors During Cancellation: Unexpected errors during cancellation can also prevent a successful cancellation.
You'll want to check if the infrastructure block is intact and has proper cancellation support.
Reference:
-
Prefect 2.x Flows Concepts
If you still face issues after this, you might have to dig deeper into the infrastructure settings or seek help from their support.
Hope this helps!