Files
mtusi2026lab5/app/lifecycle.py
T
2026-11-10 14:47:33 +03:00

7 lines
271 B
Python

"""Process lifecycle state shared by the server and request handlers."""
import threading
# Set on the first SIGTERM/SIGINT. While draining, /health/ready answers 503
# and responses carry "Connection: close", but requests are still served.
draining = threading.Event()