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:
parent
9b722ee41d
commit
92b236ba86
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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={})
|
||||
|
|
Loading…
Reference in a new issue