You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dev mode doesn’t reload changes properly — workers stop or ignore updated code #670
Hi,
I'm not sure how to provide a fully reproducible test case, but I’m seeing some erratic behavior with Solid Queue in development mode.
In my app, I have several service classes under app/services. When I make code changes there, the workers don’t pick them up — in fact, sometimes the queue processing stops entirely. I have to restart the process each time for the changes to take effect.
As a test, I temporarily switched to Sidekiq, and in that setup code changes are picked up right away, so this seems to be related to how Solid Queue handles app reloading in development.
Environment:
Rails version: 8.0.1
Ruby version: 3.5+
Solid Queue version: 1.2.2
Expected behavior:
Workers should reload the updated code automatically in development, or at least behave consistently with Rails reloader.
Actual behavior:
Changes in service files are ignored until I restart the worker process.
Hey @michelson, I think this was introduced with the last release. Could you try to see if this works correctly in version 1.2.1? I suspect #655 might be the cause 🤔
Seeing the same here on v1.2.2, but with Ruby 3.4 and Rails 8.1. Based on the behavior, I also wondered if it's related to the reloader and #655 caught my eye as well. Currently trying v1.2.1..
Looking at #655, since Supervisor#start runs perpetually, it seems like a questionable idea to enter the app_executor and just stay inside for the duration of the process. I don't believe the standard Rails app_executor is intended to be used that way.
I'm not quite sure of #655's exact intended use case, but perhaps Supervisor#start should only wrap run_start_hooks (and maybe boot), and then #stop should only wrap run_stop_hooks ?
Hola Rosa, thank you for your quick reply. I can confirm that downgrading to version 1.2.1 resolved the code reload issue in my development environment.
Activity
rosa commentedon Oct 28, 2025
Hey @michelson, I think this was introduced with the last release. Could you try to see if this works correctly in version 1.2.1? I suspect #655 might be the cause 🤔
zarqman commentedon Oct 28, 2025
Seeing the same here on v1.2.2, but with Ruby 3.4 and Rails 8.1. Based on the behavior, I also wondered if it's related to the reloader and #655 caught my eye as well. Currently trying v1.2.1..
Looking at #655, since
Supervisor#startruns perpetually, it seems like a questionable idea to enter the app_executor and just stay inside for the duration of the process. I don't believe the standard Rails app_executor is intended to be used that way.I'm not quite sure of #655's exact intended use case, but perhaps
Supervisor#startshould only wraprun_start_hooks(and maybeboot), and then#stopshould only wraprun_stop_hooks?michelson commentedon Oct 28, 2025
Hola Rosa, thank you for your quick reply. I can confirm that downgrading to version 1.2.1 resolved the code reload issue in my development environment.
rosa commentedon Oct 28, 2025
@michelson, thanks for confirming. I just reverted #655, and I'm going to release version 1.2.3 shortly with that change.
rosa commentedon Oct 28, 2025
Relased that, so I'm going to close this one. Thanks for the report!
zarqman commentedon Oct 29, 2025
Wanted to confirm that v1.2.3., with the reversion in #672, is working well again here. Thanks!
Add wrap_in_app_executor in a few necessary places
Add wrap_in_app_executor in a few necessary places
Wrap Supervisor#start and stop with the app executor