Skip to content
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

Allow configuration of Active Job queue name #707

Merged
merged 1 commit into from
Jun 1, 2020

Conversation

mrzasa
Copy link
Contributor

@mrzasa mrzasa commented Mar 27, 2020

We can configure sidekiq queue in settings, but ActiveJob queue name was hadcoded. This PR changes this and allows configuring AJ queue by setting Chewy.settings[:active_job][:queue].

@@ -33,7 +33,7 @@ def leave
private

def sidekiq_queue
Chewy.settings.fetch(:sidekiq, {})[:queue] || 'chewy'
Chewy.settings.dig(:sidekiq, :queue) || 'chewy'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drive-by improvement

@mrzasa mrzasa force-pushed the configure-active-job-queue branch from 52dc8cb to a4b84ca Compare March 30, 2020 10:45
@mrzasa mrzasa added the WIP label Apr 2, 2020
@mrzasa
Copy link
Contributor Author

mrzasa commented Apr 2, 2020

WIP until CI is fixed

@mrzasa mrzasa force-pushed the configure-active-job-queue branch from a4b84ca to b23e97d Compare June 1, 2020 10:35
@mrzasa mrzasa added enhancement and removed WIP labels Jun 1, 2020
@mrzasa mrzasa force-pushed the configure-active-job-queue branch from b23e97d to f11a51a Compare June 1, 2020 11:57
active_job_settings = Chewy.settings[:active_job]
Chewy.settings[:active_job] = {queue: 'low'}
Chewy.strategy(:bypass) { example.run }
Chewy.settings[:active_job] = active_job_settings
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

making the tests order-independent

@mrzasa mrzasa merged commit 22f8f27 into master Jun 1, 2020
@AlfonsoUceda AlfonsoUceda deleted the configure-active-job-queue branch January 14, 2021 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants