Skip to content

Commit

Permalink
Merge pull request #241 from farhatahmad/poller-enabled
Browse files Browse the repository at this point in the history
Poller no longer changes server to enabled/disabled
  • Loading branch information
farhatahmad authored Jun 5, 2020
2 parents fcff29f + 1e2f1bc commit e8c3822
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/tasks/poll.rake
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ namespace :poll do

Rails.logger.info("Server id=#{server.id} is healthy. Bringing back online...")
server.reset_counters
server.enabled = true
server.load = meetings.length * (server.load_multiplier.nil? ? 1.0 : server.load_multiplier.to_d)
server.online = true
end
Expand All @@ -58,7 +57,6 @@ namespace :poll do
Rails.logger.warn("Server id=#{server.id} is unhealthy. Panicking and setting offline...")
Rake::Task['servers:panic'].invoke(server.id) # Panic server to clear meetings
server.reset_counters
server.enabled = false
server.load = nil
server.online = false
ensure
Expand Down

0 comments on commit e8c3822

Please sign in to comment.