setup_graceful_shutdown
setup_graceful_shutdown
Register signal handlers for SIGTERM and SIGINT so the agent shuts down cleanly.
This is especially useful in Kubernetes deployments where the pod receives SIGTERM
before termination.
Parameters
None.
Returns
None