Sha256: db27cbb84ade47f98d252660c2332a9127a87e00a2a9048dd45ffb4d760e03e5

Contents?: true

Size: 289 Bytes

Versions: 4

Compression:

Stored size: 289 Bytes

Contents

# frozen_string_literal: true

# :nocov:

class UntilAndWhileExecutingJob
  include Sidekiq::Worker

  sidekiq_options queue: :working, unique: :until_and_while_executing, lock_timeout: 0, lock_expiration: nil

  def perform(sleepy_time)
    sleep(sleepy_time)
    [sleepy_time]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-6.0.0.rc6 examples/until_and_while_executing_job.rb
sidekiq-unique-jobs-6.0.0.rc5 examples/until_and_while_executing_job.rb
sidekiq-unique-jobs-6.0.0.rc4 examples/until_and_while_executing_job.rb
sidekiq-unique-jobs-6.0.0.rc3 examples/until_and_while_executing_job.rb