Skip to content

Commit

Permalink
Run dispatch when processor done or dies
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-at-intercom committed Jun 4, 2016
1 parent 12f0151 commit f4640d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/shoryuken/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def processor_done(queue, processor)
return after(0) { @finished.signal } if @busy.empty?
else
@ready << processor
dispatch
end
end
end
Expand All @@ -86,6 +87,7 @@ def processor_died(processor, reason)
return after(0) { @finished.signal } if @busy.empty?
else
@ready << build_processor
dispatch
end
end
end
Expand Down

0 comments on commit f4640d9

Please sign in to comment.