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?
  • Loading branch information
agrare authored Jan 30, 2018
2 parents 7411f9a + 577ada7 commit c3b0376
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 c3b0376

Please sign in to comment.