mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 07:33:37 +08:00
7b63c42304
This will give us some aggregate stats on the defer queue performance. It is limited to 100 entries (for safety) which is stored in an LRU cache. Scheduler::Defer.stats can then be used to get an array that denotes: - number of runs and completions (queued, finished) - error count (errors) - total duration (duration) We can look later at exposing these metrics to gain visibility on the reason the defer queue is clogged. |
||
---|---|---|
.. | ||
defer.rb |