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

Supervise Sidekiq::Manager

This should resolve issues where if the manager actor crashes Sidekiq should no longer freeze
This commit is contained in:
Brian Goff 2013-09-21 10:51:49 -04:00
parent 602d5da96d
commit adeaa84db9

View file

@ -7,7 +7,10 @@ module Sidekiq
attr_reader :manager, :poller, :options
def initialize(options)
@options = options
@manager = Sidekiq::Manager.new(options)
Sidekiq::Manager.supervise_as :manager, options
@manager = Celluloid::Actor[:manager]
@poller = Sidekiq::Scheduled::Poller.new
end