feat(scheduler): dormant Yandex Realty city-sweep (#561) #642
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#642
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/561-yandex-sweep-scheduler"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Closes #561. Wires a full Yandex.Недвижимость periodic city-sweep into the in-app scheduler, shipped DISABLED (enabled=false) by design — live behavior is intentionally unverified pending egress-IP rotation (#623). Mirrors the existing
avito_city_sweep(also currently disabled in prod).save_listingsper anchor, cooperative cancel, per-anchor exception isolation, defensive abort after 3 consecutive anchor failures (mark_banned; YandexRealtyScraper has no block/rate exception classes).enabled=false, window 02:00-05:00 UTC, conservative{pages_per_anchor:2, request_delay_sec:9, radius_m:1500},ON CONFLICT (source) DO NOTHING(idempotent). 2nd migration through the new _schema_migrations gate (#637).code-reviewer: ✅ approve, no blockers. Dormant-safety confirmed (
get_due_schedules WHERE enabled=true+ partial index → cannot fire); correctness-if-enabled traced; trigger session lifecycle clean; migration idempotent on uniquesource; zero shared-loop regression.⚠️ Operator runbook (do NOT enable casually)
Live sweep hits Yandex from prod IP → anti-bot. Enable ONLY after #623 (egress-IP rotation):
Test plan
Closes #561