Sam 2b8d4508e5 PERF: stop running background work between requests
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.
2017-11-23 15:48:47 +11:00
..
2017-10-23 10:49:42 +11:00
2017-07-29 13:12:45 +02:00
2017-11-10 14:10:27 -05:00
2017-07-28 10:20:09 +09:00
2017-07-28 10:20:09 +09:00
2017-09-08 14:07:24 +08:00
2017-07-28 10:20:09 +09:00
2017-11-10 14:10:27 -05:00
2017-07-28 10:20:09 +09:00
2017-07-28 10:20:09 +09:00
2017-07-03 15:26:57 -04:00
2017-11-02 12:33:35 +01:00
2017-07-28 10:20:09 +09:00
2017-10-30 11:20:55 -04:00
2017-07-28 10:20:09 +09:00