Sha256: 91417d4498a2deb1050b7cee45190e5961cfd6980d0b928a9f5e0a1ed905e1bc

Contents?: true

Size: 194 Bytes

Versions: 16

Compression:

Stored size: 194 Bytes

Contents

class Failing
  include Sidekiq::Worker
  include Sidetiq::Schedulable

  recurrence { secondly }

  def perform(*args)
    if rand(5) == 0
      raise "This didn't go well."
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sidetiq-0.7.2 examples/workers/failing.rb
sidetiq-0.7.1 examples/workers/failing.rb
sidetiq-0.7.0 examples/workers/failing.rb
sidetiq-0.6.3 examples/workers/failing.rb
sidetiq-0.6.2 examples/workers/failing.rb
sidetiq-0.6.1 examples/workers/failing.rb
sidetiq-0.6.0 examples/workers/failing.rb
sidetiq-0.5.0 examples/workers/failing.rb
sidetiq-0.4.3 examples/workers/failing.rb
sidetiq-0.4.2 examples/workers/failing.rb
sidetiq-0.4.1 examples/workers/failing.rb
sidetiq-0.4.0 examples/workers/failing.rb
sidetiq-0.4.0.rc4 examples/workers/failing.rb
sidetiq-0.4.0.rc3 examples/workers/failing.rb
sidetiq-0.4.0.rc2 examples/workers/failing.rb
sidetiq-0.4.0.rc1 examples/workers/failing.rb