7

Whenever I hit a binding.pry while running an app locally, I enter the pry session as normal, but after about a minute, I see something like this in my server output. [54438] ! Terminating timed out worker: 54455

Then the server seems to run in a loop for a second or two (re-running queries that lead to the pry session) and I return to a new pry session from the same binding.pry, except in this new pry session whenever I type I can't see anything I'm typing. The only way to fix this problem is to quit the server and restart.

I've tried inserting the following line in my config/puma.rb file but it doesn't seem to make any difference. worker_timeout 900 if ENV["RACK_ENV"] == "development"

The only thing that works is setting the number of puma workers I have to 0 in my .env file. E.g PUMA_WORKERS=0

Is there any way around this issue that doesn't involve just eliminating all puma workers?

James Stonehill
  • 1,125
  • 10
  • 22

0 Answers0