Sha256: 58a542c2b2ec2470e267e6cae4a65d76181b7f7941c0414a6306935fe2e166b1
Contents?: true
Size: 229 Bytes
Versions: 1
Compression:
Stored size: 229 Bytes
Contents
class HardWorker include Sidekiq::Worker sidekiq_options :timeout => 60, :backtrace => 5, :timeout => 20 def perform(name, count, salt) raise name if name == 'crash' print "#{Time.now}\n" sleep count end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-1.2.0 | myapp/app/workers/hard_worker.rb |