module AsyncCache::Workers::SidekiqWorker::Options
Pulled out into a module so it can be tested.
Public Class Methods
included(mod)
click to toggle source
# File lib/async_cache/workers/sidekiq.rb, line 12 def self.included(mod) if defined?(Sidekiq::Enterprise) mod.sidekiq_options unique_for: AsyncCache.options[:uniqueness_timeout] elsif defined?(SidekiqUniqueJobs) # Only allow one job per set of arguments to ever be in the queue mod.sidekiq_options unique: :until_executed end end