Push our conf to partners on the 4-hour cycle too, since the conf-save hook the push half was written for never existed

This commit is contained in:
Gmer4Lfe
2026-08-16 19:47:19 -04:00
parent 35e59d2510
commit 1493cf2dcf
+12 -7
View File
@@ -12,7 +12,8 @@
# OPERATIONAL MODEL # OPERATIONAL MODEL
# ============================================================================================== # ==============================================================================================
# #
# 1. conf_sync.sh --pull-only — refresh partner conf cache in RAM (/tmp/varaverk/conf/) # 1. conf_sync.sh — refresh partner conf cache in RAM (/tmp/varaverk/conf/),
# both directions: pull theirs, push ours
# 2. arr_sync.sh — sync Lidarr/Sonarr/Radarr libraries across all nodes # 2. arr_sync.sh — sync Lidarr/Sonarr/Radarr libraries across all nodes
# 3. Rsync window (optional) — INTERMEDIATE_SYNC_SHARES, if any configured # 3. Rsync window (optional) — INTERMEDIATE_SYNC_SHARES, if any configured
# 4. INTERMEDIATE_MAINTENANCE_SCRIPTS — artwork fetch and any future 4-hour jobs # 4. INTERMEDIATE_MAINTENANCE_SCRIPTS — artwork fetch and any future 4-hour jobs
@@ -182,23 +183,27 @@ echo ""
echo "━━━ $ICON_GEAR Intermediate Sync — $MY_ID$(date '+%Y-%m-%d %H:%M:%S') ━━━" echo "━━━ $ICON_GEAR Intermediate Sync — $MY_ID$(date '+%Y-%m-%d %H:%M:%S') ━━━"
# ============================================================================================== # ==============================================================================================
# ━━━ Conf Pull ━━━ # ━━━ Conf Sync ━━━
# ============================================================================================== # ==============================================================================================
echo "" echo ""
echo "━━━ $ICON_GEAR Conf Pull ━━━" echo "━━━ $ICON_GEAR Conf Sync ━━━"
# Full sync, not --pull-only. The push half was written as an event-driven fast path for the
# conf-save hook, but no such hook was ever built — so outside array start nothing pushed this
# host's conf to its partners at all, and a partner's copy of our conf stayed at whatever it was
# when we last rebooted. Pull alone kept our view of them fresh while their view of us decayed.
CONF_SYNC_SCRIPT="$ECOSYSTEM_ROOT/System_Essentials/conf_sync.sh" CONF_SYNC_SCRIPT="$ECOSYSTEM_ROOT/System_Essentials/conf_sync.sh"
if [[ ! -f "$CONF_SYNC_SCRIPT" ]]; then if [[ ! -f "$CONF_SYNC_SCRIPT" ]]; then
warn "conf_sync.sh not found — skipping partner conf refresh" warn "conf_sync.sh not found — skipping partner conf refresh"
else else
_conf_args=("--pull-only") _conf_args=()
[[ "$DRY_RUN" == true ]] && _conf_args+=("--dry-run") [[ "$DRY_RUN" == true ]] && _conf_args+=("--dry-run")
if bash "$CONF_SYNC_SCRIPT" "${_conf_args[@]}"; then if bash "$CONF_SYNC_SCRIPT" "${_conf_args[@]}"; then
echo "Partner conf cache refreshed ✅" echo "Partner conf cache refreshed ✅"
JOB_PASS+=("conf_sync.sh --pull-only") JOB_PASS+=("conf_sync.sh")
else else
warn "Partner conf pull failed — cache may be stale" warn "Partner conf sync failed — cache may be stale"
JOB_FAIL+=("conf_sync.sh --pull-only") JOB_FAIL+=("conf_sync.sh")
fi fi
unset _conf_args unset _conf_args
fi fi