ЛР5: RabbitMQ + worker, async pipeline, outbox, retry/backoff, variants

This commit is contained in:
2026-11-06 19:58:12 +03:00
commit a5b0bf29d7
78 changed files with 7869 additions and 0 deletions
@@ -0,0 +1,6 @@
-- lab5: constraint attachments_error_code должен знать про queued/processing.
-- Идемпотентно: DROP IF EXISTS — можно применять повторно.
ALTER TABLE attachments DROP CONSTRAINT IF EXISTS attachments_error_code;
ALTER TABLE attachments ADD CONSTRAINT attachments_error_code CHECK (
(status = 'failed') = (error_code IS NOT NULL)
);