Skip to content

Commit

Permalink
cluster.rb - remove worker dead (#1927)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSP-Greg authored and nateberkopec committed Aug 24, 2019
1 parent 9fb1228 commit 1046165
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lib/puma/cluster.rb
Expand Up @@ -74,7 +74,6 @@ def initialize(idx, pid, phase, options)
@started_at = Time.now
@last_checkin = Time.now
@last_status = '{}'
@dead = false
@term = false
end

Expand All @@ -89,14 +88,6 @@ def boot!
@stage = :booted
end

def dead?
@dead
end

def dead!
@dead = true
end

def term?
@term
end
Expand Down Expand Up @@ -507,7 +498,7 @@ def run
log "- Worker #{w.index} (pid: #{pid}) booted, phase: #{w.phase}"
force_check = true
when "t"
w.dead!
w.term
force_check = true
when "p"
w.ping!(result.sub(/^\d+/,'').chomp)
Expand Down

0 comments on commit 1046165

Please sign in to comment.