mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
cleanup
This commit is contained in:
parent
314a6b64f8
commit
da62019b49
1 changed files with 1 additions and 4 deletions
|
@ -88,7 +88,6 @@ module Sidekiq
|
||||||
@in_progress.delete(processor)
|
@in_progress.delete(processor)
|
||||||
if @done
|
if @done
|
||||||
processor.terminate
|
processor.terminate
|
||||||
#shutdown if @in_progress.empty?
|
|
||||||
else
|
else
|
||||||
@ready << processor
|
@ready << processor
|
||||||
end
|
end
|
||||||
|
@ -99,9 +98,7 @@ module Sidekiq
|
||||||
def processor_died(processor, reason)
|
def processor_died(processor, reason)
|
||||||
@plock.synchronize do
|
@plock.synchronize do
|
||||||
@in_progress.delete(processor)
|
@in_progress.delete(processor)
|
||||||
if @done
|
unless @done
|
||||||
#shutdown if @in_progress.empty?
|
|
||||||
else
|
|
||||||
p = Processor.new(self)
|
p = Processor.new(self)
|
||||||
p.start
|
p.start
|
||||||
@ready << p
|
@ready << p
|
||||||
|
|
Loading…
Reference in a new issue