demarches-normaliennes/app/jobs/sidekiq_again_job.rb
2023-11-22 10:08:55 +01:00

12 lines
307 B
Ruby

class SidekiqAgainJob < ApplicationJob
self.queue_adapter = :sidekiq
queue_as :default
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
end