From 577ada7af80383d9aba716b1437c1cf5d5d13c24 Mon Sep 17 00:00:00 2001 From: James Wong Date: Mon, 29 Jan 2018 16:43:24 -0500 Subject: [PATCH] Checking killed worker with is_alive? https://bugzilla.redhat.com/show_bug.cgi?id=1536041 --- app/models/miq_worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/miq_worker.rb b/app/models/miq_worker.rb index 9ce35f0d7ed..c0241688fc7 100644 --- a/app/models/miq_worker.rb +++ b/app/models/miq_worker.rb @@ -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