lib/einhorn/command.rb in einhorn-0.4.4 vs lib/einhorn/command.rb in einhorn-0.4.5
- old
+ new
@@ -332,9 +332,14 @@
Einhorn.log_info("Have too many workers at the current version, so killing off #{excess.length} of them.")
signal_all("USR2", excess)
end
end
+ def self.stop_respawning
+ Einhorn::State.respawn = false
+ Einhorn::Event.break_loop
+ end
+
def self.replenish
return unless Einhorn::State.respawn
if !Einhorn::State.last_spinup
replenish_immediately