20260803 死repo传输层黑名单+daemon健康检查摘除(#141)
This commit is contained in:
@@ -1331,6 +1331,17 @@ run_one_round() {
|
||||
daemon_args+=(--db-stats-exact-every "$DB_STATS_EXACT_EVERY")
|
||||
fi
|
||||
fi
|
||||
# Dead-repo transport blacklist (#141): opt-in via env; the daemon forwards
|
||||
# the enable flag and threshold to the child unless already present there.
|
||||
if [[ -n "${DEAD_REPO_BLACKLIST_PATH:-}" ]]; then
|
||||
daemon_args+=(--dead-repo-blacklist "$DEAD_REPO_BLACKLIST_PATH")
|
||||
if [[ -n "${DEAD_REPO_BLACKLIST_FAIL_THRESHOLD:-}" ]]; then
|
||||
daemon_args+=(--dead-repo-blacklist-fail-threshold "$DEAD_REPO_BLACKLIST_FAIL_THRESHOLD")
|
||||
fi
|
||||
if [[ -n "${DEAD_REPO_HEALTH_CHECK_INTERVAL_SECS:-}" ]]; then
|
||||
daemon_args+=(--dead-repo-health-check-interval-secs "$DEAD_REPO_HEALTH_CHECK_INTERVAL_SECS")
|
||||
fi
|
||||
fi
|
||||
|
||||
set +e
|
||||
env \
|
||||
|
||||
Reference in New Issue
Block a user