1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Move history cleanup to CLI as we don't want errors crashing the Manager actor

This commit is contained in:
Mike Perham 2012-12-10 20:43:01 -08:00
parent 9b722ee41d
commit 92b236ba86
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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={})