discourse/lib/scheduler
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
..
views clean up formatting reports 2016-05-31 07:57:28 +10:00
defer.rb PERF: stop running background work between requests 2017-11-23 15:48:47 +11:00
manager.rb FEATURE: add event for scheduled_job_ran 2017-10-23 17:22:17 +11:00
schedule_info.rb correct multisite issues with scheduler 2017-10-11 18:46:53 +11:00
schedule.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
scheduler.rb
web.rb keep time consistent, we always use to_i 2017-10-11 14:26:50 +11:00