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
Server hangs after #1297 #1301
Comments
That's not good! Are you using the configuration for Puma described in this section? https://github.com/bensheldon/good_job?tab=readme-ov-file#execute-jobs-async--in-process Also, could you try setting the worker count to zero? |
I just reverted the change in 3.27.1: https://github.com/bensheldon/good_job/releases/tag/v3.27.3 |
Sorry for the late response. I added the Puma hooks configurations and it seems working fine now with versions before_fork do
GoodJob.shutdown
end
on_worker_boot do
GoodJob.restart
end
on_worker_shutdown do
GoodJob.shutdown
end
MAIN_PID = Process.pid
at_exit do
GoodJob.shutdown if Process.pid == MAIN_PID
end |
After updating to 3.27.1, when I run the Rails server, it immediately hangs for me and won't respond to any requests. Upon pressing
CTRL+c
it raises aPG::ConnectionBad
exception and then shutdown after 10-20 seconds. Here's the output I get:After downgrading the gem to
3.27.0
the issue was gone. I also tried to increase DB pool from 5 to 10, but it didn't fix the issue. I'm using Rails 7.0.8.1.The text was updated successfully, but these errors were encountered: