chore(job): DossierIndexSearchTerms in low_priority queue
This commit is contained in:
parent
2c07f0260c
commit
eaf9773e9e
2 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
|||
class DossierIndexSearchTermsJob < ApplicationJob
|
||||
queue_as :low_priority
|
||||
|
||||
discard_on ActiveRecord::RecordNotFound
|
||||
|
||||
def perform(dossier)
|
||||
|
|
|
@ -12,7 +12,7 @@ RSpec.describe InstructeurMailer, type: :mailer do
|
|||
before { ENV['BULK_EMAIL_QUEUE'] = custom_queue }
|
||||
|
||||
it 'enqueues email is custom queue for low priority delivery' do
|
||||
expect { subject.deliver_later }.to have_enqueued_job.on_queue(custom_queue)
|
||||
expect { subject.deliver_later }.to have_enqueued_job(PriorizedMailDeliveryJob).on_queue(custom_queue)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue