sidekiq test job can raise an exception
This commit is contained in:
parent
9f6cff07e4
commit
1880a15d69
1 changed files with 4 additions and 1 deletions
|
@ -2,7 +2,10 @@ class SidekiqAgainJob < ApplicationJob
|
|||
self.queue_adapter = :sidekiq
|
||||
queue_as :default
|
||||
|
||||
def perform(user)
|
||||
def perform(user, with_exception: false)
|
||||
if with_exception
|
||||
raise 'Nop'
|
||||
end
|
||||
Sentry.capture_message('this is a message from sidekiq')
|
||||
UserMailer.new_account_warning(user).deliver_now
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue