What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-27 08:16:21
sidekiq prevent duplicate jobs strategy
class SidekiqUniqChecker def self.perform_unique_async(action, model_name, id) key = "#{action}:#{model_name}:#{id}" queue = Sidekiq::Queue.new('elasticsearch') queue.each { |q| return if q.args.join(':') == key } Indexer.perform_as... Add solution