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