Skip to content

Commit

Permalink
Merge pull request #16908 from jameswnl/killworker
Browse files Browse the repository at this point in the history
Checking killed worker with is_alive?
(cherry picked from commit c3b0376)

https://bugzilla.redhat.com/show_bug.cgi?id=1536041
  • Loading branch information
agrare authored and simaishi committed Feb 12, 2018
1 parent 35c564c commit 7a8f59f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def kill
_log.info("Killing worker: ID [#{id}], PID [#{pid}], GUID [#{guid}], status [#{status}]")
Process.kill(9, pid)
loop do
break unless alive?
break unless is_alive?
sleep(0.01)
end
rescue Errno::ESRCH
Expand Down

0 comments on commit 7a8f59f

Please sign in to comment.