Skip to content

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

@michelson

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.

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