# 2026-11-10 14:24:42 UTC | Persistence: контейнеры до | exit 0 | 0.3s
$ docker compose --env-file .env ps -a --format table {{.Name}}	{{.Status}}	{{.RunningFor}}
NAME                        STATUS                        CREATED
messenger-lab5-api-5        Up 33 seconds (healthy)       34 seconds ago
messenger-lab5-api-6        Up 22 seconds (healthy)       22 seconds ago
messenger-lab5-broker-1     Up 3 minutes (healthy)        39 minutes ago
messenger-lab5-lb-1         Up 24 minutes (healthy)       39 minutes ago
messenger-lab5-migrate-1    Exited (0) 3 minutes ago      39 minutes ago
messenger-lab5-postgres-1   Up 25 minutes (healthy)       39 minutes ago
messenger-lab5-redis-1      Up 25 minutes (healthy)       39 minutes ago
messenger-lab5-s3-1         Up 4 minutes (healthy)        39 minutes ago
messenger-lab5-s3-init-1    Exited (0) 3 minutes ago      39 minutes ago
messenger-lab5-worker-1     Up About a minute (healthy)   About a minute ago
# 2026-11-10 14:25:27 UTC | Persistence: make test-persistence (API + worker + PostgreSQL + Redis + broker + S3 + LB) | exit 0 | 45.1s
$ python tests/resilience.py --mode persistence --action-script scripts\restart.cmd --base-url http://127.0.0.1:8080
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.

# 2026-11-10 14:25:27 UTC | Persistence: контейнеры после (Status = Up N seconds) | exit 0 | 0.3s
$ docker compose --env-file .env ps -a --format table {{.Name}}	{{.Status}}	{{.RunningFor}}
NAME                        STATUS                                     CREATED
messenger-lab5-api-5        Up 7 seconds (healthy)                     About a minute ago
messenger-lab5-api-6        Up 7 seconds (healthy)                     About a minute ago
messenger-lab5-broker-1     Up 37 seconds (healthy)                    40 minutes ago
messenger-lab5-lb-1         Up Less than a second (health: starting)   40 minutes ago
messenger-lab5-migrate-1    Exited (0) 4 minutes ago                   40 minutes ago
messenger-lab5-postgres-1   Up 37 seconds (healthy)                    40 minutes ago
messenger-lab5-redis-1      Up 37 seconds (healthy)                    40 minutes ago
messenger-lab5-s3-1         Up 27 seconds (healthy)                    40 minutes ago
messenger-lab5-s3-init-1    Exited (0) 4 minutes ago                   40 minutes ago
messenger-lab5-worker-1     Up 7 seconds (healthy)                     2 minutes ago

# 2026-11-10 14:25:30 UTC | Persistence: сверка БД <-> S3 после рестарта | exit 0 | 2.9s
$ python scripts/ops.py reconcile
 Container messenger-lab5-api-run-467cf1258171 Creating 
 Container messenger-lab5-api-run-467cf1258171 Created 
{
  "mode": "dry-run",
  "grace_seconds": 900,
  "stale_pending": 0,
  "stale_pending_ids": [],
  "staging_to_clean": 1,
  "objects_listed": 640,
  "orphan_objects": 0,
  "orphan_objects_within_grace": 0,
  "orphan_objects_sample": [],
  "bucket_scan_seconds": 0.211,
  "ready_rows": 637,
  "missing_objects": 0,
  "missing_object_ids": [],
  "total_seconds": 0.229
}

