Implement lab4 attachments on RustFS for grade 4.

Carry over lab3 HA stack and add private S3 storage, Attachment API, orphan compensation/reaper, own tests, and evidence for smoke/persistence/failover.
This commit is contained in:
2026-11-12 20:41:02 +03:00
parent ec540a1a72
commit 747ca222e5
43 changed files with 3049 additions and 23 deletions
+18
View File
@@ -0,0 +1,18 @@
"""One-shot migrations (run once before API replicas)."""
import logging
from app.db import Database
logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s")
logger = logging.getLogger("migrate")
def main() -> None:
db = Database()
db.open()
logger.info("migrations complete")
db.close()
if __name__ == "__main__":
main()