Darragh
06/11/2020, 5:34 PMDylan
Cancelled
state follows a “best attempt” design pattern. It’s extremely difficult to kill arbitrary python processes, especially ones that are running on shared Dask Clusters or the like. Here’s the PR where we added the “cancellation lite” functionality to Prefect Server (which I believe you’re using): https://github.com/PrefectHQ/prefect/pull/2535Dylan
Dylan
Cancelled
state may not stop the run immediately, but it should stop any new Task Runs from starting. Once Running
Task Runs enter a Finished state, the flow run should stopDarragh
06/11/2020, 5:40 PMDylan
Dylan
Cancelled
state
2. Interact with Fargate to delete the run infrastructureDylan
Dylan
Dylan
Marvin
06/11/2020, 5:46 PMDarragh
06/11/2020, 5:50 PMDylan
Running
state to resolve on their ownDylan
Dylan
Dylan
Dylan
Darragh
06/11/2020, 5:54 PMDylan
Dylan
Running
Task Run to stop, you’ll need to kill its execution infrastructure manuallyDarragh
06/11/2020, 5:58 PMDylan
Running
Task Runs enter finished states, then setting the Flow Run to Cancelled
will do the trickDylan
Pedro Machado
06/11/2020, 8:57 PMDylan
Dylan
Dylan
Dylan
Dylan
Pedro Machado
06/11/2020, 9:00 PMDylan
Dylan
Dylan
Dylan
Dylan
Pedro Machado
06/11/2020, 9:02 PMCancelled
or is there a way to send a signal to a task that is already running to tell it to stop? This would not work if the task is hung but if it's running as expected, it could decide that it needs to stop because the external signal was sent.Dylan
Dylan
Darragh
06/12/2020, 7:28 PMDylan