Skip to content

Commit

Permalink
Document that Puma.stats inside of a child process is not supported
Browse files Browse the repository at this point in the history
Close #1963
  • Loading branch information
nateberkopec committed Sep 12, 2019
1 parent b33b2dd commit 3ce98b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/puma/cluster.rb
Expand Up @@ -346,7 +346,9 @@ def reload_worker_directory
log "+ Changing to #{dir}"
Dir.chdir dir
end


# Inside of a child process, this will return all zeroes, as @workers is only populated in
# the master process.
def stats
old_worker_count = @workers.count { |w| w.phase != @phase }
booted_worker_count = @workers.count { |w| w.booted? }
Expand Down

0 comments on commit 3ce98b7

Please sign in to comment.