-
Notifications
You must be signed in to change notification settings - Fork 73
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
Conversation
apoorv1316
commented
Jul 2, 2024
•
edited
Loading
edited
- Migrated from sidekiq to solid queue for jobs.
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.
Great work @apoorv1316 🎉,
I've added some minor comments, lemme know your thoughts on that.
gem "mission_control-jobs" | ||
gem "solid_queue", "~> 0.3" |
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.
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 |
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.
don't we wanna run the solidqueue worker on production?
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've added it in fly.production.toml . Do we still need to add it here?
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.
Make it consistent
@@ -0,0 +1,18 @@ | |||
# frozen_string_literal: true | |||
|
|||
class MissionControlController < ApplicationController |
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.
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" |
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.
Did you noticed any issue on running the jobs on test?
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.
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 |
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.
Keep this until we are getting rid of Redis
completely