-
Notifications
You must be signed in to change notification settings - Fork 125
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
Puma plugin fails with NameError
#241
Comments
Do you mean without using the Solid Queue plugin at all? It just fails when you try to start the app via |
Sorry for not being clear on this. In the original issue report, I provided two different lists of reproduction steps for this issue:
Here, I wanted to highlight that the second list does not require In any case, the puma plugin is required to reproduce the issue. Without the Solid Queue plugin for Puma, the error does not occur. Since the Puma plugin is going to be removed with #303, this issue is obsolete and can be closed. |
Ah, got it! Sorry, I misunderstood what you meant! 🙏 Thanks a lot for taking the time to clarify. And yes, it's true that with the Puma plugin going away, the issue is no longer applicable. Thanks again. |
Like with #243, we're going to keep the plugin in the end, so I'll reopen. Thanks again for your patience! |
We've just integrated
solid_queue
in our Rails app and want to use the puma plugin to run Solid Queue's supervisor. However, with our current puma config, this fails:I've reduced our
puma.rb
config and also reproduced the issue with a new Rails app.Steps to reproduce:
rails new "solid_queue" -T --api --no-tests
gem "solid_queue"
bundle install
rails generate solid_queue:install
rails db:migrate
puma.rb
config:a. Configure
workers
to be used, i.e.workers 2
b. Add
preload_app! false
c. Add the puma plugin with
plugin :solid_queue
bundle exec puma
Even without starting the app through
puma
, I was able to reproduce the error with the following steps:Steps to reproduce:
rails new "solid_queue" -T --api --no-tests
gem "solid_queue"
bundle install
rails generate solid_queue:install
rails db:migrate
puma.rb
config:a. Configure
workers
to be used, i.e.workers 2
b. Add
prune_bundler
c. Add the puma plugin with
plugin :solid_queue
rails s
In our production environment, we use a combination of the
puma
command withpreload_app! false
("replaced" byfork_worker
) andprune_bundler
for phased restarts. Obviously, this configuration isn't supported by the puma plugin.Ruby: 3.3.2 +YJIT
Rails: 7.1.3.4
Puma: 6.4.2
Solid Queue: 0.3.3
The text was updated successfully, but these errors were encountered: