mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
PERF: Don't allow a single user to monopolize the defer queue (#25593)
This commit is contained in:
committed by
GitHub
parent
67229a7739
commit
30922855f2
@@ -29,6 +29,7 @@ module Hijack
|
||||
Scheduler::Defer.later(
|
||||
"hijack #{params["controller"]} #{params["action"]} #{info}",
|
||||
force: false,
|
||||
current_user: current_user&.id,
|
||||
&scheduled.method(:resolve)
|
||||
)
|
||||
rescue WorkQueue::WorkQueueFull
|
||||
|
||||
Reference in New Issue
Block a user