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

Sidekiq to solid queue migration #1871

Merged
merged 9 commits into from
Jul 10, 2024
Merged

Sidekiq to solid queue migration #1871

merged 9 commits into from
Jul 10, 2024

Conversation

apoorv1316
Copy link
Contributor

@apoorv1316 apoorv1316 commented Jul 2, 2024

  • Migrated from sidekiq to solid queue for jobs.

@apoorv1316 apoorv1316 self-assigned this Jul 2, 2024
@apoorv1316 apoorv1316 removed their assignment Jul 4, 2024
Copy link
Member

@akhilgkrishnan akhilgkrishnan left a comment

Choose a reason for hiding this comment

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

Great work @apoorv1316 🎉,
I've added some minor comments, lemme know your thoughts on that.

Comment on lines +117 to +118
gem "mission_control-jobs"
gem "solid_queue", "~> 0.3"
Copy link
Member

Choose a reason for hiding this comment

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

Add proper description for these two gems

@@ -1,2 +1 @@
web: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-production}
worker: bundle exec sidekiq -e production -C config/sidekiq.yml
Copy link
Member

Choose a reason for hiding this comment

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

don't we wanna run the solidqueue worker on production?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added it in fly.production.toml . Do we still need to add it here?

Copy link
Member

Choose a reason for hiding this comment

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

Make it consistent

@@ -0,0 +1,18 @@
# frozen_string_literal: true

class MissionControlController < ApplicationController
Copy link
Member

Choose a reason for hiding this comment

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

can you also add a test for this controller?

@@ -209,7 +206,6 @@ group :test, :ci do
# Strategies for cleaning databases in Ruby.
gem "database_cleaner", "~> 2.0"
gem "hash_dot"
gem "rspec-sidekiq", git: "https://github.com/wspurgin/rspec-sidekiq", branch: "main"
Copy link
Member

Choose a reason for hiding this comment

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

Did you noticed any issue on running the jobs on test?

Copy link
Contributor Author

@apoorv1316 apoorv1316 Jul 4, 2024

Choose a reason for hiding this comment

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

2 tests were failing after removing this gem because they were using the matchers from this gem. Now I am using matcher from rspec-rails for those tests.

@@ -27,13 +27,6 @@ GOOGLE_OAUTH_CLIENT_SECRET='google-oauth-client-secret'
# Application Monitoring
NEW_RELIC_LICENSE_KEY='replace with newrelic licence key'

# Redis url
Copy link
Contributor

Choose a reason for hiding this comment

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

Keep this until we are getting rid of Redis completely

@apoorv1316 apoorv1316 merged commit d1ddcab into develop Jul 10, 2024
1 check passed
@apoorv1316 apoorv1316 deleted the solid-queue branch July 10, 2024 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants