perf(tradein): cian full-load incremental save + concurrent pagination #929
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#929
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/cian-fullload-fast-incremental"
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
Test plan
✅ APPROVE — корректный concurrency + incremental-save, additive. Мержу.
Verified
gatherсобирает page-результаты →seen/bucket_lotsмержатся последовательно после.Semaphore(concurrency)лимитит in-flight. Дедуп по source_id целостен (тестconcurrent_pages_deduped: page3 дублирует page1 → 20 unique). ✓hiтеперь всегда int (старт_MAX_PRICE, None-ветка убрана чисто); split halves → bounded depth.min_bracket_guardтест обновлён на ≤55 (probe + до 54 параллельных стр) — всё ещё валидирует отсутствие бесконечной рекурсии. ✓on_bucket→save_listings(commit) per leaf → краш не теряет накопленное. Upsert гасит boundary-дубли между бакетами. ✓on_bucketкидаетRuntimeError("cancelled")→ ловитсяexcept RuntimeError(стоит ПЕРЕД genericexcept Exception, проверяется первым) →mark_doneс частичными уже-сохранёнными результатами. Не-"cancelled" RuntimeError → mark_failed+raise. Корректный порядок. ✓return_exceptions=True→ упавшие страницы логируются и скипаются (не рушат бакет). Cross-file: на базе #926,save_listingssig не менялся.🟡 Advisory (не блокер)
concurrency=5 @ delay 1.5sагрессивно для одного egress — но operator-tunable (admin endpoint), выделенный прокси #923 + rotation на probe.counters.unique_fetcheddouble-count'ит cross-bucket дубли (cosmetic, только heartbeat).Squash-merge + delete branch.