demarches-normaliennes/app/jobs/sidekiq_again_job.rb
2024-08-22 09:26:48 +02:00

14 lines
338 B
Ruby

# frozen_string_literal: true
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