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

This job is not mission critical and should not clog the default queue
This commit is contained in:
Alan Guo Xiang Tan 2024-12-26 09:54:02 +08:00 committed by GitHub
parent 61e5431d2a
commit e4cab1c60b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)