During a rolling deploy, the shutdown coordinator cancels every in-flight worker task and waits for each one to stop. Instead of stopping, the cancelled tasks complete normally and return {"ok": false, "error": ""}. The coordinator reads that as a job that handled its own failure and kept running, so shutdown hangs until the pod is force-killed. Pressing Ctrl-C during a local run behaves the same way: the job reports a failure result and the worker carries on.
Expected: awaiting a cancelled job task raises asyncio.CancelledError, and interrupt or exit requests stop the worker, while real job failures are still reported as results.