Sha256: 301a73f45f12a8a61b593bbef1a3b551bc011eb3be2927d070de0284a15019b6

Contents?: true

Size: 262 Bytes

Versions: 2

Compression:

Stored size: 262 Bytes

Contents

class WhileExecutingWorker
  include Sidekiq::Worker

  sidekiq_options unique: :while_executing

  def perform(_one, _two)
    Sidekiq::Logging.with_context(self.class.name) do
      logger.debug { "#{__method__}(#{some_args})" }
    end
    sleep 10
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-5.0.2 rails_example/app/workers/while_executing_worker.rb
sidekiq-unique-jobs-5.0.1 rails_example/app/workers/while_executing_worker.rb