Skip to content

Commit

Permalink
Remove commented time based worker killing code 🔥
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie committed Mar 14, 2017
1 parent e7cf728 commit e86d017
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/models/miq_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,8 @@ def self.restart_workers(server_id = nil)
end

def self.clean_workers
time_threshold = 1.hour
server_scope.each do |w|
Process.kill(9, w.pid) if w.pid && w.is_alive? rescue nil
# if w.last_heartbeat && (time_threshold.ago.utc < w.last_heartbeat)
# ActiveRecord::Base.connection.kill(w.sql_spid)
# end
w.destroy
end
end
Expand Down

0 comments on commit e86d017

Please sign in to comment.