mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Merge pull request #1595 from mperham/feature/stats
Increase expiration time for stats from 180 days to 5 years.
This commit is contained in:
commit
b8cbb914f7
2 changed files with 4 additions and 1 deletions
|
@ -51,6 +51,7 @@ end
|
|||
processes 'workers'. Instead, use "Thread", "Process" or "Job".
|
||||
- The Workers tab is now renamed to Busy and contains a list of live
|
||||
Sidekiq processes and jobs in progress.
|
||||
- Processed/failed stats will now expire in 5 years instead of 180 days [#1593]
|
||||
|
||||
2.17.7
|
||||
-----------
|
||||
|
|
|
@ -11,7 +11,9 @@ module Sidekiq
|
|||
# processes it. It instantiates the worker, runs the middleware
|
||||
# chain and then calls Sidekiq::Worker#perform.
|
||||
class Processor
|
||||
STATS_TIMEOUT = 180 * 24 * 60 * 60
|
||||
# To prevent a memory leak, ensure that stats expire. However, they should take up a minimal amount of storage
|
||||
# so keep them around for a long time
|
||||
STATS_TIMEOUT = 24 * 60 * 60 * 365 * 5
|
||||
|
||||
include Util
|
||||
include Actor
|
||||
|
|
Loading…
Add table
Reference in a new issue