Chu
04/20/2026, 2:52 PMalex
04/20/2026, 2:57 PMCANCELLING or PENDING.Sebastian S
04/20/2026, 3:17 PMcancellation of the flow run and teardown of the infrastructure are handled by a process running within the infrastructureIn a context where one is using k8s as the underlying , for example, this would be the prefect k8s worker?
alex
04/20/2026, 3:52 PMprefect flow-run execute inside the K8s pod starts the flow run in a subprocess and opens a websocket to listen for cancellation state changes. If a canceling state change is received, then the parent process terminates the flow run execution process and exits.
If the parent process hangs or gets suspended via a SIGSTOP, but doesn't exit, then you can get zombie infra. Those are the cases that we aim to solve with this additional communication channel. Do you have any theories why job processes might be hanging?Sebastian S
04/20/2026, 4:10 PMChu
04/20/2026, 4:16 PMalex
04/20/2026, 4:19 PMMitch
04/20/2026, 5:12 PM