=== GRACE PERIOD TEST — Thu Nov 12 19:47:14 MSK 2026 === Токен получен: Og1fzgz0vqjdVCg0QUoh... Chat ID: 2ec9048c-21d6-4c5e-9cc0-23921d61f547 Attachment ID: 9d31bb57-66a5-4c25-8dcc-314f1b12221f Object key: 33e8916a-122e-4e45-9722-f37d6fd56b74.png Запись удалена из БД — ORPHAN === DRY-RUN сразу (файл свежий, < grace 10 сек) === /app/scripts/reconcile.py:81: DeprecationWarning: Parsing dates involving a day of month without a year specified is ambiguious and fails to parse leap day. The default behavior will change in Python 3.15 to either always raise an exception or to use a different default year (TBD). To avoid trouble, add a specific year to the input & format. See https://github.com/python/cpython/issues/70647. minio_client.stat_object(BUCKET, key) Файлов в БД: 111 Объектов в MinIO: 109 [SKIP] 33e8916a-122e-4e45-9722-f37d6fd56b74.png (возраст: 0:00:00.957545 — свежий, не трогаем) [SKIP] id=ec42f559-a4ed-4237-87bd-8ed4791cbb12, key=33655bad-fe2d-4144-b621-b667d8eee105.png — используется в сообщении, не удаляем [SKIP] id=57462036-5532-4a23-8a84-4437c1e89c64, key=aa776ea9-b469-4e4c-b5af-6f0e2b514a12.png — используется в сообщении, не удаляем [SKIP] id=0858aa8f-d096-4ac3-ae8f-68b66411fe2e, key=f120b3d7-f213-42ea-ab3e-9b837a0167a0.png — используется в сообщении, не удаляем [DRY-RUN] Missing: 0 (удалить), 3 (используется, SKIP). Удаление не выполнено. === Пауза 11 секунд === === DRY-RUN через 11 секунд (файл старше grace 10 сек) === /app/scripts/reconcile.py:81: DeprecationWarning: Parsing dates involving a day of month without a year specified is ambiguious and fails to parse leap day. The default behavior will change in Python 3.15 to either always raise an exception or to use a different default year (TBD). To avoid trouble, add a specific year to the input & format. See https://github.com/python/cpython/issues/70647. minio_client.stat_object(BUCKET, key) Файлов в БД: 111 Объектов в MinIO: 109 [ORPHAN] 33e8916a-122e-4e45-9722-f37d6fd56b74.png (возраст: 0:00:12.908644, старше grace_period) [SKIP] id=ec42f559-a4ed-4237-87bd-8ed4791cbb12, key=33655bad-fe2d-4144-b621-b667d8eee105.png — используется в сообщении, не удаляем [SKIP] id=57462036-5532-4a23-8a84-4437c1e89c64, key=aa776ea9-b469-4e4c-b5af-6f0e2b514a12.png — используется в сообщении, не удаляем [SKIP] id=0858aa8f-d096-4ac3-ae8f-68b66411fe2e, key=f120b3d7-f213-42ea-ab3e-9b837a0167a0.png — используется в сообщении, не удаляем [DRY-RUN] Missing: 0 (удалить), 3 (используется, SKIP). Удаление не выполнено. === EXECUTE (удаляем созревший orphan) === /app/scripts/reconcile.py:81: DeprecationWarning: Parsing dates involving a day of month without a year specified is ambiguious and fails to parse leap day. The default behavior will change in Python 3.15 to either always raise an exception or to use a different default year (TBD). To avoid trouble, add a specific year to the input & format. See https://github.com/python/cpython/issues/70647. minio_client.stat_object(BUCKET, key) Объектов в MinIO: 109 [DELETED] 33e8916a-122e-4e45-9722-f37d6fd56b74.png Удалено 1 orphan-объектов. === Проверка: orphan удалён из MinIO === Orphan в MinIO: mc: Unable to stat `myminio/messenger-attachments/33e8916a-122e-4e45-9722-f37d6fd56b74.png`. Object does not exist. ================================================================ ИТОГ ================================================================ 1. Сразу (1 сек) → [SKIP] — свежий, не удаляется 2. Через 11 сек (12 сек > 10 сек) → [ORPHAN] — «созрел» 3. Execute → [DELETED] — удалён из MinIO 4. Это доказывает grace period: свежие не удаляются, старые — удаляются