feat(worker): add pipeline version upgrade command

This commit is contained in:
kk10
2026-11-16 22:26:35 +03:00
parent 5442dfd3bc
commit f8ca7a7218
6 changed files with 181 additions and 5 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ CREATE TABLE outbox (
created_at timestamptz NOT NULL DEFAULT now(),
available_at timestamptz NOT NULL DEFAULT now(),
published_at timestamptz,
UNIQUE (job_id, attempt)
UNIQUE (job_id, pipeline_version, attempt)
);
CREATE INDEX idx_outbox_pending ON outbox (available_at, id) WHERE published_at IS NULL;