feat(tradein/scraper): per-city sweep capability для 5 городов области (schedules disabled) #2487
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#2487
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/tradein-oblast-b1-city-anchors"
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?
Что
B1 расширения Mera на область: capability гонять city-sweep скраперы (avito/cian/yandex) по городам Свердловской обл. — Нижний Тагил / Каменск-Уральский / Первоуральск / Верхняя Пышма / Серов. Schedules засеяны DISABLED — rollout вручную по одному городу (⚠️ proxy-пул = 1 живой прокси, масштабировать нельзя разом). domclick (B2) — отдельно, не тронут.
Изменения
CITY_ANCHORS(5 городов, центр-анкоры) +get_city_anchors(slug)(None → EKB_ANCHORS fallback).run_*_city_sweep(anchors=)уже принимает._job_{avito,cian,yandex}_city_sweepчитаютparams.city→ резолвят анкоры. Wildcard-хендлерыavito/cian/yandex_city_sweep_*(т.к.scrape_schedules.sourceUNIQUE → каждому городу свой sourceavito_city_sweep_nizhniy_tagil; механизм как existingdeactivate_stale_*).OBLAST66_BBOX+is_within_oblast66_bbox(совпадает с geocoder). avito/detail.py: ingest coord-guardis_within_ekb_bbox_wide→is_within_oblast66_bbox(иначе координаты не-ЕКБ сбрасывались в None).enabled=false, staggered окна (15 непересекающихся часовых слотов), idempotentON CONFLICT (source) DO NOTHING.Проверка
test_search_cache_hit, как в CI). ruff clean.Rollout (после merge, вручную мной)
radius_mпод площадь (1 anchor × 1500м может не покрыть Н.Тагил/Каменск).UPDATE scrape_schedules SET enabled=true, next_run_at=now() WHERE source='avito_city_sweep_<slug>'), мониторить proxy-health + bans.