2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-04-06 22:56:43 -04:00
|
|
|
# base.rb uses this style of require, so maintain usage of it here
|
|
|
|
require_dependency "#{Rails.root}/app/jobs/regular/user_email.rb"
|
|
|
|
|
|
|
|
module Jobs
|
2016-04-07 00:38:43 -04:00
|
|
|
class CriticalUserEmail < UserEmail
|
2016-04-06 22:56:43 -04:00
|
|
|
|
|
|
|
sidekiq_options queue: 'critical'
|
|
|
|
|
2018-09-30 13:15:45 -04:00
|
|
|
def quit_email_early?
|
|
|
|
false
|
|
|
|
end
|
|
|
|
|
2016-04-06 22:56:43 -04:00
|
|
|
def execute(args)
|
|
|
|
super(args)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|