feat(worker): add pipeline version upgrade command
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user