Why Hardcoded MIN_COOLDOWN_SEC = 120 Matters
Concurrent agent swarms routinely hammer developer consoles with duplicate onboarding or probe attempts within milliseconds, triggering WAF rate-limits and CAPTCHA traps. DataFuel's DataFuelHarvester persists every domain touch timestamp in a SQLite WAL table (domain_cooldowns) and strictly refuses to re-probe any domain inside a 120-second window.
| SQLite WAL Table | Primary Purpose | Enforcement Rule | Leakage Protection |
|---|---|---|---|
domain_cooldowns | Per-domain unix_ts cooldown state | Hard floor >= 120s; rejects early retries | Domain hostname only; zero credentials |
harvest_parked | CAPTCHA & payment-gate parking log | Records PARKED_WITH_FALLBACK / PARKED_SILENTLY | Scrubbed via src/redaction.py |
provider_quota_telemetry | Monthly & daily free-tier pacing | Tracks soft pacing + hard UTC caps (Resend, IPGeolocation) | Counts & metadata only; reveal=False |
Planning Cooldown-Safe Runs via REST
curl -sS -X POST https://datafuel.fastmesh.dev/v1/datafuel/plan-harvest \
-H "Content-Type: application/json" \
-d '{"families": ["web_search", "clean_scrape"], "dry_run": true}'
Domains still within their 120-second cooldown window are automatically annotated with remaining cooldown seconds and deferred rather than retried.
Frequently Asked Questions
- Can a caller override the 120-second domain cooldown to a lower number?
- No. MIN_COOLDOWN_SEC = 120 is hardcoded in src/config.py and enforced at the SQLite WAL boundary in src/ra_harvester.py.
- Does the cooldown lock slow down cached API calls?
- No. Cooldown locks govern upstream console/harvest probes, while verified ArchiveCache reads serve immediately with zero upstream network latency.