chore(tradein): две ручки ротации без читателей и врущий комментарий над ними #3232
No reviewers
Labels
No labels
Fable 5 ревью
GG-форсайт
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
feedback/max
generative
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#3232
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "chore/3212-dead-rotation-knobs"
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?
Второй кусок чистки: −35 строк, +9. Первый — #3224 (мёртвые символы).
Что нашлось
proxy_rotate_attemptsиproxy_rotate_attempt_timeout_sтюнили ретраи changeip-GET. Сам changeip снят в #2616 шаг 2 (аккаунт mobileproxy закрыт, ссылки нет), и с тех пор ручки живут чистым пламбингом:Ни одного потребителя. Держали их только четыре теста, которые заполняют поля при сборке конфига.
Врущий комментарий
Над ними в
contracts.pyстояло оправдание:wait_forтам берёт соседнее поле —avito_proxy_rotate_settle_s(avito_detail_backfill.py:249). Комментарий приписывал этим двум полям работу третьего и ровно этим прикрывал их мёртвость: читаешь — и кажется, что поля при деле.Что рядом проверено и ОСТАВЛЕНО
Соседние ручки из того же блока живые, их не трогаю:
avito/cian/yandex_proxy_max_rotationspipeline._max_rotationsavito_proxy_rotate_settle_sasyncio.wait_forвavito_detail_backfill:249Сжатие комментария
В
config.pyблок на 13 строк пересказывал историю changeip. Заменён на 9 строк о том, что нужно знать сейчас: кто читает две оставшиеся ручки, где живая ротация (ASOCKS_API_TOKEN/proxy_rotation, #2611) и что удалено в этом PR. История changeip остаётся в #2616.Приёмка
ruff check— clean.pytest— 4974 passed, 37 skipped.