Closed Ricardonacif closed 4 years ago
I'm guessing that the context where you're calling the start
method is going away.
Then even though your thread spawns it will not be running in the same process as puma.
It's basically the same issue people are running into in https://github.com/rails/rails/issues/24990
Also make sure you have Thread.abort_on_exception = true
for debugging
Guys,
I'm trying to use this gem in production, but it wasn't working. I added this line on the auto_reaper start method:
And it outputs the line only one time. I'm now sure how can I investigate why the thread is dying. Do you have any idea of where to look? My puma is 2.13.4. Here's my config file:
And my PumaWorkerKiller are on config/initializers/puma_worker_killer