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
@@ -116,7 +116,7 @@ func (w *Worker) consume(ctx context.Context, client *rabbitmq.Client) error {
job.Type != "attachment.process.v1" ||
job.JobID == uuid.Nil ||
job.AttachmentID == uuid.Nil ||
job.PipelineVersion != 1 ||
(job.PipelineVersion != 1 && job.PipelineVersion != 2) ||
job.Attempt < 1 ||
job.CreatedAt.IsZero() {
if err := delivery.Reject(false); err != nil {