Перенести рабочую реализацию lab5 в skeleton лабораторной 6.

API, worker, брокер и стенд остаются базой, контракт lab6 не менялся.
This commit is contained in:
2026-11-17 15:15:42 +03:00
parent 470d9d6f1e
commit 14ab803529
52 changed files with 6131 additions and 11 deletions
+14
View File
@@ -0,0 +1,14 @@
-- The served result is one pipeline version. An older job must not replace it.
-- Variant rows stay addressable per version; the attachment points at the winner.
ALTER TABLE attachments
ADD COLUMN applied_pipeline_version INTEGER NOT NULL DEFAULT 1
CHECK (applied_pipeline_version >= 1);
CREATE TABLE pipeline_faults (
id INTEGER PRIMARY KEY,
mode TEXT NOT NULL DEFAULT '',
remaining INTEGER NOT NULL DEFAULT 0 CHECK (remaining >= 0)
);
INSERT INTO pipeline_faults (id, mode, remaining) VALUES (1, '', 0);