mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 02:16:31 +08:00
![Sam](/assets/img/avatar_default.png)
Use a dedicated thread to run Scheduler::Defer This avoids blocking of a worker during operations that require waiting. In particular uploads risked blocking a unicorn. This also add a queue "length" that discourse prometheus consumes.
2 lines
37 B
Ruby
2 lines
37 B
Ruby
require_dependency 'scheduler/defer'
|