mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
cluster.rb - remove worker dead (#1927)
This commit is contained in:
parent
9fb12283db
commit
1046165a9c
1 changed files with 1 additions and 10 deletions
|
@ -74,7 +74,6 @@ module Puma
|
|||
@started_at = Time.now
|
||||
@last_checkin = Time.now
|
||||
@last_status = '{}'
|
||||
@dead = false
|
||||
@term = false
|
||||
end
|
||||
|
||||
|
@ -89,14 +88,6 @@ module Puma
|
|||
@stage = :booted
|
||||
end
|
||||
|
||||
def dead?
|
||||
@dead
|
||||
end
|
||||
|
||||
def dead!
|
||||
@dead = true
|
||||
end
|
||||
|
||||
def term?
|
||||
@term
|
||||
end
|
||||
|
@ -507,7 +498,7 @@ module Puma
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue