fix and report update

This commit is contained in:
2026-10-23 15:41:18 +03:00
parent 84fc48d315
commit 396d149849
6 changed files with 230 additions and 86 deletions
+2 -3
View File
@@ -36,7 +36,7 @@ def snapshot(service, compose, database):
compose + [
'exec', '-T', service, 'psql', '-U', 'messenger', '-d', database, '-tAc',
"SELECT id::text || '|' || chat_id::text || '|' || text FROM messages "
'ORDER BY created_at DESC LIMIT 5',
'ORDER BY created_at DESC, id DESC LIMIT 5',
],
cwd=ROOT,
text=True,
@@ -73,8 +73,7 @@ def main():
],
cwd=ROOT,
)
if restore.returncode not in (0, 1):
restore.check_returncode()
restore.check_returncode()
after = snapshot(RESTORE_SVC, RESTORE, 'messenger_restore')
elapsed = time.perf_counter() - started
ok = (