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:
parent
602d5da96d
commit
adeaa84db9
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue