-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
uninitialized constant Puma::Cluster #1731
Comments
The error (uninitialized constant Puma::Cluster) is from puma/dsl.rb:466, which is required by puma/configuration. Lines 464 to 466 in ca03c52
The code causing the error was due to commit 64db36c, 'Enforce a minimum worker_timeout' on 2019-01-24. With the error shown, the call stack starts with puma/control_cli
Options to fix:
|
It looks like that line in the control_cli was added in 274350a about 6 years ago. I generally don't like having requires in methods unless there's a really good reason. I don't see a downside to having the require be outside of the method and at the top of the file, though feel free to let me know if that causes issues. |
Agreed. I didn't mention that Lines 11 to 14 in 2f57c8e
Since it's autoloading three files, maybe add |
Can you try out a fix on a branch and we can see if the tests pass? I'm fine with an autoload, but it does seem like overkill for that one little constant. |
I'll give a try with Autoload. Dumb question - if we're autoloading Cluster, should the same be done with Single?
nio4r? etc? |
Likely, a slightly more purposeful release rather than just the cobbled together remnants of master. Ideally targeting RailsConf timeframe. |
Move WORKER_CHECK_INTERVAL const. Fixes #1731
We should probably just Zeitwerk everything for the future, eh? |
Rails master 6.0.0.beta1
Puma master
puma.rb
The text was updated successfully, but these errors were encountered: