Files
mtusi2026lab2/evidence/restart-hook.txt
T
RainakandClaude Opus 5.5 0c5846173b
Skeleton contracts / contracts (pull_request) Canceled after 0s
ЛР2: PostgreSQL, сессии и Valkey (на 4)
API мессенджера на FastAPI + asyncpg, миграции, Argon2id, Bearer-сессии
в PostgreSQL с кэшем Valkey, compose-стенд, restart.sh, тесты уровня 4,
EXPLAIN и отчёт.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 18:49:32 +03:00

36 lines
1.6 KiB
Plaintext

# Restart hook evidence, 2026-10-29T15:35:55Z
$ docker compose ps (before)
SERVICE STATUS
api Up 23 seconds (healthy)
postgres Up 26 seconds (healthy)
valkey Up 27 seconds (healthy)
$ docker volume inspect mtusi-lab2_pgdata (before)
mtusi-lab2_pgdata created 2026-10-29T15:27:24Z
$ messages count (before)
50029
$ sh scripts/restart.sh
before:
/mtusi-lab2-api-1 2026-10-29T15:35:32.425887132Z
/mtusi-lab2-postgres-1 2026-10-29T15:35:28.694054577Z
/mtusi-lab2-valkey-1 2026-10-29T15:35:28.598642747Z
after:
/mtusi-lab2-api-1 2026-10-29T15:36:04.421672285Z
/mtusi-lab2-postgres-1 2026-10-29T15:36:00.44755603Z
/mtusi-lab2-valkey-1 2026-10-29T15:36:00.560733883Z
$ docker compose ps (after)
SERVICE STATUS
api Up 1 second (health: starting)
postgres Up 5 seconds (healthy)
valkey Up 5 seconds (healthy)
$ docker volume inspect mtusi-lab2_pgdata (after)
mtusi-lab2_pgdata created 2026-10-29T15:27:24Z
$ messages count (after)
50029
$ docker compose logs postgres --since 1m | grep -E "shut down|ready to accept"
postgres-1 | 2026-10-29 15:35:28.065 UTC [1] LOG: database system is shut down
postgres-1 | 2026-10-29 15:35:29.149 UTC [29] LOG: database system was shut down at 2026-10-29 15:35:28 UTC
postgres-1 | 2026-10-29 15:35:29.158 UTC [1] LOG: database system is ready to accept connections
postgres-1 | 2026-10-29 15:35:59.971 UTC [1] LOG: database system is shut down
postgres-1 | 2026-10-29 15:36:00.824 UTC [31] LOG: database system was shut down at 2026-10-29 15:35:59 UTC
postgres-1 | 2026-10-29 15:36:00.835 UTC [1] LOG: database system is ready to accept connections