Sha256: 93514be97cdec7daa34394e58544dbcd97d40234ad8857a06da7631872205e6d

Contents?: true

Size: 290 Bytes

Versions: 1

Compression:

Stored size: 290 Bytes

Contents

class WithoutArgumentWorker
  include Sidekiq::Worker
  sidekiq_options unique: :until_executed,
                  log_duplicate_payload: true

  def perform
    Sidekiq::Logging.with_context(self.class.name) do
      Sidekiq.logger.debug { __method__.to_s }
    end
    sleep 20
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-5.0.0 rails_example/app/workers/without_argument_worker.rb