Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79c652ddd3 |
@@ -384,13 +384,7 @@ def services_converged(domain: str) -> bool:
|
|||||||
if proc.returncode != 0:
|
if proc.returncode != 0:
|
||||||
return False # a service vanished mid-check — not settled
|
return False # a service vanished mid-check — not settled
|
||||||
for state in proc.stdout.split("\n"):
|
for state in proc.stdout.split("\n"):
|
||||||
# Only ACTIVE states block convergence. 'paused'/'rollback_paused' are terminal-without-
|
if state.strip() not in ("", "completed", "rollback_completed"):
|
||||||
# intervention: swarm's default update-failure-action pauses the update on one task flicker
|
|
||||||
# and the flag then persists FOREVER (immich CI 241: app service 'paused' from a restart
|
|
||||||
# during restore, service back at 1/1 and healthy — the wait hung to its deadline). With
|
|
||||||
# N/N already required above, a paused update is settled for our purposes; the HTTP-health
|
|
||||||
# and tier assertions still gate whether the app actually works.
|
|
||||||
if state.strip() in ("updating", "rollback_started"):
|
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ def _register_site(domain: str, site: str) -> None:
|
|||||||
f"SELECT domain FROM sites WHERE domain = '{site}';"
|
f"SELECT domain FROM sites WHERE domain = '{site}';"
|
||||||
)
|
)
|
||||||
out = lifecycle.exec_in_app(
|
out = lifecycle.exec_in_app(
|
||||||
domain, ["psql", "-U", "plausible", "-d", "plausible", "-tAc", sql], service="db"
|
domain, ["psql", "-q", "-U", "plausible", "-d", "plausible", "-tAc", sql], service="db"
|
||||||
).strip()
|
).strip()
|
||||||
assert out == site, f"site {site!r} not registered in postgres (got {out!r})"
|
assert out == site, f"site {site!r} not registered in postgres (got {out!r})"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user