Merge pull request 'fix(tradein/scheduler): boot-reap виден и при нуле (#3122)' (#3124) from fix/3122-boot-reap-observable into main
All checks were successful
Deploy Trade-In / changes (push) Successful in 12s
Deploy Trade-In / build-frontend (push) Has been skipped
Deploy Trade-In / build-browser (push) Has been skipped
Deploy Trade-In / test (push) Successful in 3m52s
Deploy Trade-In / build-backend (push) Successful in 1m36s
Deploy Trade-In / deploy (push) Successful in 2m5s
Deploy Trade-In / deploy-status (push) Successful in 1s
Deploy Trade-In / perimeter-smoke (push) Successful in 11s
All checks were successful
Deploy Trade-In / changes (push) Successful in 12s
Deploy Trade-In / build-frontend (push) Has been skipped
Deploy Trade-In / build-browser (push) Has been skipped
Deploy Trade-In / test (push) Successful in 3m52s
Deploy Trade-In / build-backend (push) Successful in 1m36s
Deploy Trade-In / deploy (push) Successful in 2m5s
Deploy Trade-In / deploy-status (push) Successful in 1s
Deploy Trade-In / perimeter-smoke (push) Successful in 11s
This commit is contained in:
commit
ff2335899e
1 changed files with 6 additions and 0 deletions
|
|
@ -451,6 +451,12 @@ def reap_boot_zombies(db: Session, boot_time: datetime) -> int:
|
||||||
len(rows),
|
len(rows),
|
||||||
[(r.id, r.source) for r in rows],
|
[(r.id, r.source) for r in rows],
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
# Ноль — штатный исход (деплоевский startup-reap обычно успевает раньше),
|
||||||
|
# но исполнение обязано быть видимым: молчащий при нуле механизм
|
||||||
|
# неотличим от неподключённого (первая же живая приёмка #3122 это
|
||||||
|
# показала — оборванную проводку было бы не отличить от чистого прода).
|
||||||
|
logger.info("scheduler: boot-reap — прогонов предыдущего контейнера нет (0)")
|
||||||
return len(rows)
|
return len(rows)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue