angael 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/angael/manager.rb +5 -3
- data/lib/angael/version.rb +1 -1
- metadata +1 -1
data/lib/angael/manager.rb
CHANGED
@@ -68,14 +68,16 @@ module Angael
|
|
68
68
|
stop!
|
69
69
|
end
|
70
70
|
|
71
|
-
|
72
|
-
|
71
|
+
if @restart_after
|
72
|
+
loop do
|
73
73
|
# Periodically restart workers, 1 at a time.
|
74
74
|
sleep @restart_after
|
75
75
|
w = next_worker_to_restart
|
76
76
|
w.stop!
|
77
77
|
w.start!
|
78
|
-
|
78
|
+
end
|
79
|
+
else
|
80
|
+
loop do
|
79
81
|
# Don't restart workers if nothing is wrong.
|
80
82
|
sleep 1
|
81
83
|
end
|
data/lib/angael/version.rb
CHANGED