From 0c72858116388b7a4c8cac8732fbeb9e905e1920 Mon Sep 17 00:00:00 2001 From: Donovan Daniels Date: Thu, 24 Oct 2024 02:55:12 -0500 Subject: [PATCH] queue UpdateExternalCacheJob as low priority --- app/jobs/update_external_cache_job.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/jobs/update_external_cache_job.rb b/app/jobs/update_external_cache_job.rb index a55f062..3a1a202 100644 --- a/app/jobs/update_external_cache_job.rb +++ b/app/jobs/update_external_cache_job.rb @@ -1,6 +1,8 @@ # frozen_string_literal: true class UpdateExternalCacheJob < ApplicationJob + queue_as :low_priority + def perform(image) image.update_cache! end