New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config hook execution order doesn't seem to match examples/config.rb #840
Comments
Looking at the source I think this is an error in documentation and naming. The underlying code registers an |
@tpodom Thanks for the reply! |
@evanphx I saw this was closed but I'm not sure why. It seems like either |
Well, I can't rename those now because that would break peoples config files. The docs just need to be be clear that it happens in the master, i'll do that. |
I fixed the name, because it was confusing, leaving an alias for the old name. |
@evanphx thanks, that will be much more clear going forward |
Tiny fixes in hook documentation for #840
I'm trying to gain a better understanding of how Puma works. I'm running Puma in cluster mode, with
preload_app!
, and myconfig/puma.rb
looks like:When I start Puma, I see:
This doesn't match my expectations based on reading
examples/config.rb
. To paraphrase from the file,on_worker_boot
is forand
after_worker_boot
is forBased on that documentation, I would expect the
after_worker_boot
hook to run in each worker process, after theon_worker_boot
hook. But this doesn't match what I see in my console-- theafter_worker_boot
hook is being run first, and only in the parent process.What's the source of this misunderstanding?
The text was updated successfully, but these errors were encountered: