[object Object]

← back to Nationalrealestate

Make listings CAP env-tunable (USRE_LISTINGS_CAP, default 100) to grow homes from compliant adapters

82774feec5d180f8ceda596a2043ae3500bf9c61 · 2026-07-30 18:02:19 -0700 · steve@designerwallcoverings.com

Files touched

Diff

commit 82774feec5d180f8ceda596a2043ae3500bf9c61
Author: steve@designerwallcoverings.com <steve@designerwallcoverings.com>
Date:   Thu Jul 30 18:02:19 2026 -0700

    Make listings CAP env-tunable (USRE_LISTINGS_CAP, default 100) to grow homes from compliant adapters
---
 src/ingest/listings/engine.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ingest/listings/engine.ts b/src/ingest/listings/engine.ts
index 8be5358..007655a 100644
--- a/src/ingest/listings/engine.ts
+++ b/src/ingest/listings/engine.ts
@@ -21,7 +21,7 @@ import { realtytexas } from './realtytexas.ts';
 import { politeFetch, robotsGate, resolveFirmByHost, resolveRegion } from './shared.ts';
 
 const ADAPTERS: ListingAdapter[] = [coldwellbanker, realtytexas];
-const CAP = 50; // pilot cap per site
+const CAP = Number(process.env.USRE_LISTINGS_CAP || 100); // per-site cap (env-tunable; was pilot 50)
 
 async function upsertListing(
   source: string,

← 153944d Fix places-seed pickMetro CTE scope bug (r.name->name); unbl  ·  back to Nationalrealestate  ·  Loop: reserve >=1 slot/tick for fast-consumer streams (homes 908d603 →