Skip to content

The SolidQueue background job does not reference the environment in RAILS_ENV #8

Closed

Description

@nabetaro

Thank you for creating this great gem.

I’m reporting an issue with some behavior that seems off.
In the unit file you created, RAILS_ENV is set to Capistrano’s stage.
However, Capistrano’s stage does not necessarily correspond to the RAILS_ENV.

Shouldn’t RAILS_ENV reference Capistrano’s rails_env instead?

Activity

  1. burisu commented on Nov 9, 2026

    @burisu
    Contributor

    Thanks for the report, you're right: the stage name isn't necessarily the Rails environment.

    #9, now merged into main, makes the systemd service use fetch(:rails_env, fetch(:stage)), the same rule as capistrano-rails and capistrano3-puma: RAILS_ENV falls back to the stage only when :rails_env isn't set. It will ship in the next release.

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