diff --git a/lib/sidekiq/cli.rb b/lib/sidekiq/cli.rb index d37f9298..0090cac1 100644 --- a/lib/sidekiq/cli.rb +++ b/lib/sidekiq/cli.rb @@ -75,6 +75,8 @@ module Sidekiq logger.info "Running in #{RUBY_DESCRIPTION}" logger.info Sidekiq::LICENSE + Sidekiq::Stats::History.cleanup + @manager = Sidekiq::Manager.new(options) poller = Sidekiq::Scheduled::Poller.new begin diff --git a/lib/sidekiq/manager.rb b/lib/sidekiq/manager.rb index 349042e7..c2d1363a 100644 --- a/lib/sidekiq/manager.rb +++ b/lib/sidekiq/manager.rb @@ -28,7 +28,6 @@ module Sidekiq @fetcher = Fetcher.new(current_actor, options[:queues], !!options[:strict]) @ready = @count.times.map { Processor.new_link(current_actor) } procline(options[:tag] ? "#{options[:tag]} " : '') - Sidekiq::Stats::History.cleanup end def stop(options={})