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#1952
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/scraper-resilience-cian-zombie-avito-changeip"
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?
Код-фиксы из диагностики скрейперов 2026-06-27. Только
scrape_pipeline.py+config.py+ тесты.#1950 avito (commit
757f6486)_rotate_proxy_ip— одношотный 30s-GET заменён на retry-цикл (proxy_rotate_attempts=3×proxy_rotate_attempt_timeout_s=8.0, пауза 1s, True на первой удаче). Чинит корень бана run 418: единичныйcurl-28timeout changeip ронял весь run.run_avito_city_sweep— когда SERP уже собрал лоты (lots_inserted+updated>0) а упали только detail/houses →mark_done(с нотой),mark_bannedтолько при 0 лотов. Флагavito_serp_ok_not_banned=True. (run 418 сохранил 99+152 строки под лейблом banned.)#1949 cian full_load anti-zombie (commit
e24d3cf4)_browser.fetchобёрнут вasyncio.wait_for(timeout=cian_full_load_per_fetch_timeout_s=90.0)(зависший browser-fetch отменяется →_fetch_page_htmlловит →[]→ gather завершается, не морозит run). Применяется к per-runCianScraper()._browser(свежий на каждый run, рвётся сasync with→ без утечки/вложенности).asyncio.create_task(_background_heartbeat())обновляетheartbeat_atкаждые 60s независимо от on_bucket → прогресс-run не выглядит zombie; отменяется вfinally.Новые settings (ENV-override, дефолты = безопасны)
proxy_rotate_attempt_timeout_s=8.0,proxy_rotate_attempts=3,avito_serp_ok_not_banned=True,cian_full_load_per_fetch_timeout_s=90.0.Проверка
Полный
pytest(не -k, урок test_849): 2434 passed, 2 skipped; +10 новых тестов (6 avito changeip-retry/status + 4 cian wait_for/heartbeat). 5 collection-errors вtests/scrapers/— pre-existing (env-specific, не от этих правок; CI подтвердит). ruff clean.NB: city_sweep watchdog (cian DORMANT) НЕ трогали — отдельно (#1949 part 2). Деплой: recreate tradein-scraper. Cross-ref #1949, #1950, #1790, #1848, диагностика 2026-06-27.