Выполнить лабораторную 4: S3-вложения и согласованность хранилищ

This commit is contained in:
wpyatzy
2026-11-06 19:53:58 +03:00
parent ec540a1a72
commit d228560474
77 changed files with 15769 additions and 63 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env python3
"""Pause the normal cron worker for deterministic faults, always restore it."""
from pathlib import Path
import subprocess
ROOT=Path(__file__).resolve().parents[1]
COMPOSE=str(ROOT/'scripts/compose.sh')
subprocess.run([COMPOSE,'stop','reconciler'],cwd=ROOT,check=True)
try:
output=subprocess.check_output([COMPOSE,'run','--rm','-T','--no-deps','ops','python','scripts/research_consistency.py'],cwd=ROOT,text=True)
(ROOT/'evidence/reconciliation.json').write_text(output)
print(output)
finally:
subprocess.run([COMPOSE,'start','reconciler'],cwd=ROOT,check=True)