Module: Sidekiq::Worker::Overrides::Testing

Defined in:
lib/sidekiq_unique_jobs/testing/sidekiq_overrides.rb

Instance Method Summary collapse

Instance Method Details

#clear_all_extObject



55
56
57
58
59
60
61
# File 'lib/sidekiq_unique_jobs/testing/sidekiq_overrides.rb', line 55

def clear_all_ext
  Sidekiq.redis do |c|
    unique_keys = c.keys("#{SidekiqUniqueJobs.config.unique_prefix}:*")
    c.del(*unique_keys) unless unique_keys.empty?
  end
  clear_all_orig
end