← back to Homesonspec
build-loop: uncap CAP (download ALL homes per state) + 40 sweeps, 1h cadence — max-it
775ea10a7bd7882b01c08d60471f2047cdc852a8 · 2026-07-28 12:32:11 -0700 · Steve
Files touched
Diff
commit 775ea10a7bd7882b01c08d60471f2047cdc852a8
Author: Steve <steve@designerwallcoverings.com>
Date: Tue Jul 28 12:32:11 2026 -0700
build-loop: uncap CAP (download ALL homes per state) + 40 sweeps, 1h cadence — max-it
---
scripts/build-loop.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/build-loop.sh b/scripts/build-loop.sh
index 794cddaa..9b08904a 100644
--- a/scripts/build-loop.sh
+++ b/scripts/build-loop.sh
@@ -16,8 +16,8 @@ cd "$ROOT/apps/workers" || exit 1
export DATABASE_URL="${DATABASE_URL:-postgresql://macstudio3@localhost/homesonspec?host=/tmp}"
mkdir -p "$ROOT/tmp"
STOP="$ROOT/tmp/BUILD-LOOP-STOP"
-MAX_SWEEPS="${MAX_SWEEPS:-6}"
-SWEEP_SLEEP="${SWEEP_SLEEP:-9000}" # ~2.5h between freshness sweeps (polite)
+MAX_SWEEPS="${MAX_SWEEPS:-40}" # keep going — many freshness passes
+SWEEP_SLEEP="${SWEEP_SLEEP:-3600}" # 1h between full sweeps
LOG() { echo "[$(date '+%m-%d %H:%M:%S')] $*"; }
PSQL() { psql "$DATABASE_URL" -tAc "$1" 2>/dev/null; }
CLI() { npx tsx src/cli.ts --adapter="$1" 2>&1 | grep -E '"published"|"pages"|Error|error|inactive|blocked|disallow' | head -3; }
@@ -28,7 +28,7 @@ CLI() { npx tsx src/cli.ts --adapter="$1" 2>&1 | grep -E '"published"|"pages"|Er
# so the full $STATES sweep is mostly productive; limited-footprint builders pass a scoped
# state list to sweep_adapter (2nd arg) to avoid no-yield sitemap GETs (WAF-bait). [Cody 2026-07-28]
# CAP = communities/homes per (adapter,state) per sweep — deep enough to actually fill CA.
-CAP="${CAP:-120}"
+CAP="${CAP:-100000}" # UNCAPPED — download ALL homes per state (Steve 2026-07-28), not just the first N
STATES="CA OR WA NV AZ ID HI TX FL NC GA SC TN CO OH PA VA UT IN MD MI MN MO AL OK KY LA NJ NM NY WI AR KS NE IA MS WV CT DE NH ME RI"
fullname() { case "$1" in
AL) echo "Alabama";; AK) echo "Alaska";; AZ) echo "Arizona";; AR) echo "Arkansas";;
← 6d7e3802 admin: Live site toggle (/live) — embeds the customer storef
·
back to Homesonspec
·
admin/business: link data points to REAL homes — Real-home-l 15ce8717 →