Commit 50c4d326 authored by Mike Kozono's avatar Mike Kozono

Fix RegistryConsistencyWorker reenqueuing

parent 0be059c2
...@@ -37,6 +37,7 @@ module Reenqueuer ...@@ -37,6 +37,7 @@ module Reenqueuer
include ReenqueuerSleeper include ReenqueuerSleeper
sidekiq_options retry: false sidekiq_options retry: false
deduplicate :none
end end
def perform(*args) def perform(*args)
......
...@@ -10,6 +10,10 @@ RSpec.shared_examples 'reenqueuer' do ...@@ -10,6 +10,10 @@ RSpec.shared_examples 'reenqueuer' do
expect(subject.lease_timeout).to be_a(ActiveSupport::Duration) expect(subject.lease_timeout).to be_a(ActiveSupport::Duration)
end end
it 'uses the :none deduplication strategy' do
expect(subject.class.get_deduplicate_strategy).to eq(:none)
end
describe '#perform' do describe '#perform' do
it 'tries to obtain a lease' do it 'tries to obtain a lease' do
expect_to_obtain_exclusive_lease(subject.lease_key) expect_to_obtain_exclusive_lease(subject.lease_key)
......
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