Skip to content

Dev mode doesn’t reload changes properly — workers stop or ignore updated code #670

Closed

Description

@michelson

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.

Activity

  1. rosa commented on Oct 28, 2025

    @rosa
    Member

    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 🤔

  2. zarqman commented on Oct 28, 2025

    @zarqman

    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 ?

  3. michelson commented on Oct 28, 2025

    @michelson
    Author

    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.

  4. rosa commented on Oct 28, 2025

    @rosa
    Member

    @michelson, thanks for confirming. I just reverted #655, and I'm going to release version 1.2.3 shortly with that change.

  5. rosa commented on Oct 28, 2025

    @rosa
    Member

    Relased that, so I'm going to close this one. Thanks for the report!

  6. zarqman commented on Oct 29, 2025

    @zarqman

    Wanted to confirm that v1.2.3., with the reversion in #672, is working well again here. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions