class RollbackWorker
  include Sidekiq::Worker

  sidekiq_options queue: :rollbacks

  def perform(date, redownload = false)
    TariffSynchronizer.rollback(date, redownload)
  end
end

class RollbackWorker
  include Sidekiq::Worker

  sidekiq_options queue: :rollbacks

  # Retry the job for 24 hours, after that the rollback has to be be recreated.
  sidekiq_options retry: 24

  # Retry the job every hour (the sync runs each hour)
  sidekiq_retry_in do |count|
    3600 
  end

  def perform(date, redownload = false)
    TariffSynchronizer.rollback(date, redownload)
  end
end

Change the sidekiq retry job to match the sync schedule.
Change the sidekiq retry job to match the sync schedule.

The sync is run each hour, so we should retry on the same schedule.
If it fails for a day then we should stop trying.
