demarches-normaliennes/app/jobs/sidekiq_again_job.rb

13 lines
307 B
Ruby
Raw Normal View History

2023-09-26 12:41:47 +02:00
class SidekiqAgainJob < ApplicationJob
self.queue_adapter = :sidekiq
queue_as :default
def perform(user, with_exception: false)
if with_exception
raise 'Nop'
end
2023-11-21 11:41:58 +01:00
Sentry.capture_message('this is a message from sidekiq')
2023-09-26 12:41:47 +02:00
UserMailer.new_account_warning(user).deliver_now
end
end