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:
@@ -12,7 +12,8 @@
|
||||
# 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
|
||||
# 3. Rsync window (optional) — INTERMEDIATE_SYNC_SHARES, if any configured
|
||||
# 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') ━━━"
|
||||
|
||||
# ==============================================================================================
|
||||
# ━━━ Conf Pull ━━━
|
||||
# ━━━ Conf Sync ━━━
|
||||
# ==============================================================================================
|
||||
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"
|
||||
if [[ ! -f "$CONF_SYNC_SCRIPT" ]]; then
|
||||
warn "conf_sync.sh not found — skipping partner conf refresh"
|
||||
else
|
||||
_conf_args=("--pull-only")
|
||||
_conf_args=()
|
||||
[[ "$DRY_RUN" == true ]] && _conf_args+=("--dry-run")
|
||||
if bash "$CONF_SYNC_SCRIPT" "${_conf_args[@]}"; then
|
||||
echo "Partner conf cache refreshed ✅"
|
||||
JOB_PASS+=("conf_sync.sh --pull-only")
|
||||
JOB_PASS+=("conf_sync.sh")
|
||||
else
|
||||
warn "Partner conf pull failed — cache may be stale"
|
||||
JOB_FAIL+=("conf_sync.sh --pull-only")
|
||||
warn "Partner conf sync failed — cache may be stale"
|
||||
JOB_FAIL+=("conf_sync.sh")
|
||||
fi
|
||||
unset _conf_args
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user