-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the sidekiq queue config #458
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just curious if there are any benefits from this prefix since we seem never to run our application with both environments on the same machine. 🤔
config.active_job.queue_name_prefix = nil
The only benefit I can see is it allow us to have different setup per env like
|
@sanG-github comment makes sense as the use case it covers does not exists for us as all environments are isolated. @Goose97 brought this into his IC but now it does not make sense to upstream this IMO 😅 |
@sanG-github @olivierobert But by default, the Rails generator will set the
So if we do not modify the Incase we do not need this PR, we would need to open another PR in our template to - update the
|
@olivierobert @sanG-github to clarify: These new queue names (with env prefix) are the default generated by the So there are 2 options:
In my opinion, it's better to reduce the deviation with Rails defaults (less code, less maintenance to handle). So I recommend moving forward with this PR 👍 |
a8868a7
to
0f52648
Compare
Please help to resolve the failing CI, then we're good to go!!! 🚀 |
0f52648
to
166cd3e
Compare
@andyduong1920 I just rebased that PR onto develop, that should fix the failing test 😇 |
Thank you 🚀 |
What happened 👀
Add the queues with Rails env prefix in order to allow the Sidekiq job get processed.
Insight 📝
The new default Rails generate had the
config.active_job.queue_name_prefix = Rails.env
which will require the Sidekiq queue to include these env prefixes.Proof Of Work 📹
Used in client projects