mirror of
https://github.com/discourse/discourse.git
synced 2025-01-01 16:36:19 +08:00
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:
parent
61e5431d2a
commit
e4cab1c60b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user