"""Set on SIGTERM: readiness turns 503 so the LB stops routing here while requests are still served.""" import threading draining = threading.Event()