Commit 4bfc431f authored by Mark Chao's avatar Mark Chao

Enable sidekiq versioning

by removing feature flag
parent 82d6547b
---
title: Provide versioning support to Sidekiq workers
merge_request: 39562
author:
type: other
---
name: sidekiq_versioning
introduced_by_url:
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/232934
group: group::fulfillment
type: development
default_enabled: false
\ No newline at end of file
...@@ -4,7 +4,7 @@ module Gitlab ...@@ -4,7 +4,7 @@ module Gitlab
module SidekiqVersioning module SidekiqVersioning
class Middleware class Middleware
def call(worker, job, queue) def call(worker, job, queue)
worker.job_version = job['version'] if worker.is_a?(ApplicationWorker) && Feature.enabled?(:sidekiq_versioning) worker.job_version = job['version'] if worker.is_a?(ApplicationWorker)
yield yield
end end
......
...@@ -44,17 +44,5 @@ RSpec.describe Gitlab::SidekiqVersioning::Middleware do ...@@ -44,17 +44,5 @@ RSpec.describe Gitlab::SidekiqVersioning::Middleware do
expect { call! }.not_to raise_error expect { call! }.not_to raise_error
end end
end end
context 'when sidekiq_versioning is disabled' do
before do
stub_feature_flags(sidekiq_versioning: false)
end
it 'does not set job_version' do
expect(worker).not_to receive(:job_version=)
call!
end
end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment