fix(tradein/deploy): atomic recreate + graceful scraper drain + startup-reap (#1951) #2388
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#2388
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/tradein-1951-deploy-atomicity"
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
docker compose up -d --no-deps $SERVICESвместо двух раздельных вызовов.scrape_runs.status='running'до 5 мин (30×10s); WARNING+proceed на таймауте (существующий SIGTERM-drain +stop_grace_period 120sостаются финальной страховкой).cancelledсразу вместо ожидания 6h zombie-reaper'а. Реализовано ЦЕЛИКОМ в deploy-workflow (shell), НЕ вscheduler_main.py/scrapers — избегает коллизии с активной scraper_kit-миграцией (#2277).tr -d '[:space:]'ломал внутренний пробел в timestamp-литерале (CAST(...AS timestamptz)молча падал на КАЖДОМ деплое) → заменено наsed-trim только leading/trailing. Drain-loop больше не путает неудачный psql-read с подтверждённымrunning_count=0(иначе транзиентный docker-exec/DB glitch тихо пропускал весь drain-wait).Test plan
yaml.safe_load),docker compose config -qпроходитpostgres:16контейнере (code-review) — подтверждена причина, подтверждён фикс_manifest_applied/логи следующего деплоя на факт срабатывания startup-reap (если найдутся orphaned rows)Refs #1951