Skip to content

A platform for community discussion. Free, open, simple.

DEV: Set `Jobs::SyncAclsForUploads` to low queue (#30467)

Alan Guo Xiang Tane4cab1c60be5
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)