Skip to content

Commit

Permalink
Checking killed worker with is_alive?
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswnl committed Jan 29, 2018
1 parent 9915f79 commit 577ada7
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 @@ -416,7 +416,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 577ada7

Please sign in to comment.