An exec probe runs a command inside a container and treats exit code 0 as success. For background workers, it detects processes that remain running but become stuck, allowing Kubernetes to restart them. section 10.4
Worker liveness command
A Deployment can run ./check_liveness.sh with the timestamp file and a 300-second freshness limit. Kubernetes treats a successful command as live and restarts the container after failed liveness checks.

