2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-09-26 12:41:47 +02:00
|
|
|
class SidekiqAgainJob < ApplicationJob
|
|
|
|
self.queue_adapter = :sidekiq
|
|
|
|
queue_as :default
|
|
|
|
|
2023-11-22 09:56:05 +01:00
|
|
|
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
|