From e4cab1c60be5356c5189d9ab50d7536a6f0a1995 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Thu, 26 Dec 2024 09:54:02 +0800 Subject: [PATCH] DEV: Set `Jobs::SyncAclsForUploads` to low queue (#30467) This job is not mission critical and should not clog the default queue --- app/jobs/regular/sync_acls_for_uploads.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/jobs/regular/sync_acls_for_uploads.rb b/app/jobs/regular/sync_acls_for_uploads.rb index fcc74cba4e1..68b5123b1ac 100644 --- a/app/jobs/regular/sync_acls_for_uploads.rb +++ b/app/jobs/regular/sync_acls_for_uploads.rb @@ -5,6 +5,8 @@ module Jobs # is enabled), and since it takes ~1s per upload to update the ACL, this is # best spread out over many jobs instead of having to do the whole thing serially. class SyncAclsForUploads < ::Jobs::Base + sidekiq_options queue: "low" + def execute(args) return if !Discourse.store.external? return if !args.key?(:upload_ids)