File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -173,24 +173,27 @@ def kill
173173 # @parameter graceful [Boolean | Numeric] Whether to send SIGINT first or skip directly to SIGKILL.
174174 def stop ( graceful = GRACEFUL_TIMEOUT )
175175 Console . info ( self , "Stopping all processes..." , graceful : graceful )
176-
176+ clock = Clock . start
177+
177178 # If a timeout is specified, interrupt the children first:
178179 if graceful
180+ $stderr. puts "[Group] Interrupting all processes... clock=#{ clock . total } "
179181 # Send SIGINT to the children:
180182 self . interrupt
181183
182184 if graceful == true
183185 graceful = DEFAULT_GRACEFUL_TIMEOUT
184186 end
185187
186- clock = Clock . start
187-
188188 # Wait for the children to exit:
189+ $stderr. puts "[Group] Waiting for children to exit... clock=#{ clock . total } size=#{ self . size } graceful=#{ graceful } "
189190 self . wait_for_exit ( clock , graceful )
191+ $stderr. puts "[Group] Children exited... clock=#{ clock . total } size=#{ self . size } "
190192 end
191193 ensure
192194 # Do our best to clean up the children:
193195 if any?
196+ $stderr. puts "[Group] Killing all processes... clock=#{ clock . total } "
194197 self . kill
195198 self . wait
196199 end
You can’t perform that action at this time.
0 commit comments