Files
mtusi2026lab7/scripts/api_health.py
T
2026-11-11 13:53:51 +03:00

6 lines
175 B
Python

"""Process heartbeat for Compose; only the trusted LB probes HTTPS readiness."""
from pathlib import Path
import sys
sys.exit(0 if Path("/tmp/instance-id").is_file() else 1)