Class: Webhookdb::Jobs::RetryChecker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Job
Defined in:
lib/webhookdb/jobs/amigo_test_jobs.rb

Instance Method Summary collapse

Instance Method Details

#perform(action, interval, attempts) ⇒ Object



99
100
101
102
103
104
105
106
107
108
# File 'lib/webhookdb/jobs/amigo_test_jobs.rb', line 99

def perform(action, interval, attempts)
  case action
    when "retry"
      raise Amigo::Retry::Retry, interval
    when "die"
      raise Amigo::Retry::Die
  else
      raise Amigo::Retry::Die.new(attempts, interval)
  end
end