chore: move fetch_imap_emails_job to scheduled_jobs queue

This commit is contained in:
Vishnu Narayanan
2024-12-19 11:27:12 +05:30
parent dd25751a19
commit 85a987400f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
require 'net/imap'
class Inboxes::FetchImapEmailsJob < MutexApplicationJob
queue_as :one_min_mailer
queue_as :scheduled_jobs
def perform(channel, interval = 1)
return unless should_fetch_email?(channel)
@@ -13,7 +13,7 @@ RSpec.describe Inboxes::FetchImapEmailsJob do
it 'enqueues the job' do
expect do
described_class.perform_later(imap_email_channel, 1)
end.to have_enqueued_job(described_class).on_queue('one_min_mailer')
end.to have_enqueued_job(described_class).on_queue('scheduled_jobs')
end
context 'when IMAP is disabled' do