From 88da975792749bf9183be861ffda19d10da7834f Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Thu, 10 Oct 2024 21:16:56 +0200 Subject: [PATCH] Enqueue codec_conversion transcodes on slower queue --- app/jobs/queue_transcoded_items_for_codec_conversion_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/queue_transcoded_items_for_codec_conversion_job.rb b/app/jobs/queue_transcoded_items_for_codec_conversion_job.rb index 3f59b1f9..ca6779ba 100644 --- a/app/jobs/queue_transcoded_items_for_codec_conversion_job.rb +++ b/app/jobs/queue_transcoded_items_for_codec_conversion_job.rb @@ -6,7 +6,7 @@ class QueueTranscodedItemsForCodecConversionJob < ApplicationJob def perform(codec_conversion) AudioFile.find_in_batches do |batch| jobs = batch.filter_map do |af| - CreateTranscodedItemJob.new(af, codec_conversion) if Rails.configuration.queue_create_transcoded_item_if.call(af) + CreateTranscodedItemJob.new(af, codec_conversion).set(queue: :whenever) if Rails.configuration.queue_create_transcoded_item_if.call(af) end ActiveJob.perform_all_later(jobs) end