adaptai / platform /dbops /tools /watch_connectivity.sh
ADAPT-Chase's picture
Add files using upload-large-folder tool
503b0e9 verified
raw
history blame
462 Bytes
#!/usr/bin/env bash
set -euo pipefail
SECRETS_DIR=${SECRETS_DIR:-/data/adaptai/secrets/dataops}
DBOPS_MODE=${DBOPS_MODE:-central}
INTERVAL=${INTERVAL:-60}
echo "[watch_connectivity] mode=$DBOPS_MODE interval=${INTERVAL}s secrets=$SECRETS_DIR"
while true; do
DBOPS_MODE="$DBOPS_MODE" SECRETS_DIR="$SECRETS_DIR" \
python3 "$(dirname "$0")/render_connections.py" || true
python3 "$(dirname "$0")/connectivity_report.py" || true
sleep "$INTERVAL"
done