Sha256: a01e33695e83941cda4e0a31793a7c74f2e24ad3be1328a58f0370ca088f5b3c

Contents?: true

Size: 163 Bytes

Versions: 11

Compression:

Stored size: 163 Bytes

Contents

class HardWorker
  include Sidekiq::Worker

  def perform(name, count, salt)
    raise name if name == 'crash'
    print "#{Time.now}\n"
    sleep count
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sidekiq-1.1.4 myapp/app/workers/hard_worker.rb
sidekiq-1.1.3 myapp/app/workers/hard_worker.rb
sidekiq-1.1.2 myapp/app/workers/hard_worker.rb
sidekiq-1.1.1 myapp/app/workers/hard_worker.rb
sidekiq-1.1.0 myapp/app/workers/hard_worker.rb
sidekiq-1.0.0 myapp/app/workers/hard_worker.rb
sidekiq-0.11.2 myapp/app/workers/hard_worker.rb
sidekiq-0.11.1 myapp/app/workers/hard_worker.rb
sidekiq-0.11.0 myapp/app/workers/hard_worker.rb
sidekiq-0.10.1 myapp/app/workers/hard_worker.rb
sidekiq-0.10.0 myapp/app/workers/hard_worker.rb