class SidekiqUniqueJobs::OnConflict::Reschedule

@author Mikael Henriksson <mikael@zoolutions.se>
Strategy to reschedule job on conflict

def call

This will mess up sidekiq stats because a new job is created
Create a new job from the current one.
def call
  worker_class&.perform_in(5, *item[ARGS]) if sidekiq_worker_class?
end

def initialize(item, redis_pool = nil)

Parameters:
  • item (Hash) -- sidekiq job hash
def initialize(item, redis_pool = nil)
  super(item, redis_pool)
  @worker_class = item[CLASS]
end