Skip to content

Commit

Permalink
Migrate from sidekiq to good_job
Browse files Browse the repository at this point in the history
  • Loading branch information
skelz0r committed Oct 21, 2023
1 parent 3bcff1b commit d1fcc02
Show file tree
Hide file tree
Showing 12 changed files with 188 additions and 46 deletions.
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ gem 'bcrypt', '~> 3.1.19'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

gem 'sidekiq'
gem 'sidekiq-cron'
gem 'good_job'

gem 'draper'
gem 'ip_anonymizer'
Expand Down
19 changes: 8 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,13 @@ GEM
rails (>= 4.0.0)
globalid (1.2.1)
activesupport (>= 6.1)
good_job (3.19.4)
activejob (>= 6.0.0)
activerecord (>= 6.0.0)
concurrent-ruby (>= 1.0.2)
fugit (>= 1.1)
railties (>= 6.0.0)
thor (>= 0.14.1)
guard (2.18.1)
formatador (>= 0.2.4)
listen (>= 2.7, < 4.0)
Expand Down Expand Up @@ -469,15 +476,6 @@ GEM
shellany (0.0.1)
shoulda-matchers (5.3.0)
activesupport (>= 5.2.0)
sidekiq (7.1.6)
concurrent-ruby (< 2)
connection_pool (>= 2.3.0)
rack (>= 2.2.4)
redis-client (>= 0.14.0)
sidekiq-cron (1.10.1)
fugit (~> 1.8)
globalid (>= 1.0.1)
sidekiq (>= 6)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
Expand Down Expand Up @@ -564,6 +562,7 @@ DEPENDENCIES
draper
factory_bot_rails
gaffe
good_job
guard-rspec
i18n-tasks
interactor
Expand Down Expand Up @@ -600,8 +599,6 @@ DEPENDENCIES
sentry-rails
sentry-ruby
shoulda-matchers
sidekiq
sidekiq-cron
simplecov
simplecov-console
sitemap_generator
Expand Down
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Application < Rails::Application
config.middleware.insert_after ActionDispatch::RemoteIp, IpAnonymizer::HashIp,
key: Rails.application.credentials.ip_anonymizer_key

config.active_job.queue_adapter = :sidekiq
config.active_job.queue_adapter = :good_job
config.active_job.queue_name_prefix = "admin_api_entreprise_#{Rails.env}"

config.action_mailer.deliver_later_queue_name = :default
Expand Down
2 changes: 1 addition & 1 deletion config/credentials/production.yml.enc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sUaIU6RcjkR11ZzOoIvOIH6aeDUZBRMHK5Hqtnt3fzbn1CIwe6YpNHbRqyiK/LYzQdJOJfVvl8JWbnInjp/m86YqLqphp6RSNxqFyZ+LBxCLmFU5cjIkOOgNo9Dhdd4R4RqsRPWKJzRaoH2cIvYCExn3sxa/cvLJbCUQ/VdcPlHexXrJn+9kxeONzCoDuXMKrGZitLI39gau3lMEDXMiFkD70YUow1E8N8i9u4Uu/UsxhF8+zJMy/VGGGL3kyeg5iR6MsOnBB3KV02M9DIs6dlHdwJ1gKHSuRbuEQo1eS61ugAi6Gy5eVsjgmI+EUMnR1LwVXqRAGVrhoRCwHFuePKdrjbvuJ0AlBetA/ZTte5PHcBb31UUDoZco6lgtVdIrhZ71KxLWYqVjXXKayRjR7l27UyzyOSXVhHC4LKO8G+J/6uHEhUOJAknfpS+VASImQTF0tqNZr3nzR5s0+MH9FG1YrL4h6oBRkMOmWOejC65hs34ksWG83XBdidilAeIwZLFlg1JZL+fVI21o3qxbIA2NXrgdVI3UY1ecU4817S3yvUQqDxdaUDShHeuHv9PXzLGIogunTMZgV9euiZFUaFzb1wLNjIHzKwlVBRs6rbP2x/8El/EB3Ee0UNG2yxhDkx9OgGOisrubRC3Xiz583Wcg+H/n6Hj2g4yQwss5apmuU7zO8DgsXfw2EigRLuecvQqike7BNcDNV9kXqst72RmpfgnPfUl3s1OEItCcasAcFSxN//P4ZRuudHFKAnd/+c0sxuv5J62WlP8U2Nj0tms8xE337jmF31DAd7djaj3TUHIRWccMc5mCO4oxgGyDbpL5hufm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+7VsXvfFdKsLEmadxgKYZ793RQQOwBLaNqxAd6T5Z2PUayhTXfpti83BpkT0qmH5ddDmMSW8sVgiY0lz1fiMVRkrsMVasGd4=--vVO53cgf2j5u6ctd--jxW9FDy+n0r4EXc4nlWOgQ==
2 changes: 1 addition & 1 deletion config/credentials/test.yml.enc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9ytiJpAK0kCF8NSBuhnCLM4go6PLgkdJdrd5fW0L+OgoplHKXiSRvGFHuyuJITPvQsYiXO/eVtHWVAgQvA9S4B/BjPabYatx8H+/BZRZiHQ93Yenk6RllFNdA8z6nGKs/elg7Zopbs17kde0hseX6QyicZ/SzOi0cfD+kzQU9gOU8dlWJZu/qc+kVSJUc+k249B3E4kYrxHNTjNXHZVgJWb/xNhXaI01CS/L9BSAIvGnX6UVHfUaIuvMz3i+5VdvnIpAnqirbtSbfFfjgTTYPVTCMi6l6qeakOzgIotTwg/6500Qj443dqSvh0SBld6dbmHGbRhpCfPTF8+77CA6Ai33f7soUQG3ihv3poVJPykUZSjIWrK8fMYNvKfGFyI8LBZa1ypl9rYV4+H0ivy2LMzWSzvWawNvwQLF1eSOyglbFAowcpvkcAdz4KOM3aGXWtGLtRWjDN5BizRMSuKYzxISe9ggIthiIyGx2bDcL6/1K+NFLp1JeuofHf2S08rukBchVXQXhQtKg/BvQUFudKZDztLPKOaAutOyUnFhzaflbECHC6j7Rsq4DvWCBYJdDWP/EmtT1UttgWIMV5aXHNxFhGPeYKC1j72khCeuevujs+GcV5JWqRsHvVh0wQcVoutBtQfK5uyPfWXtehM64DtKnG3Bp2faD3QTi5IJz/VEsJr70HKJO6/8JhpBzVwbvuAA6sxsF/Dp3QRbBSwfirAPd7S94HLK/HPr6Dc8FS8Uv0keBOm3eUsCAX4+vUSMBCfH1Vrd5pYS7tQzH5nCJEHXMu9Zwh/Ih145OM+voWz6jivt66JYT7tLaWYoSJQpGSfwfM3iHPhqO5X53S/ZQO3BBNzi/bjRWYmXh4cE1DdZiw4gi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uGVQBAbBC3/2zHI3M+2eKOPxKmg7r8C20vzrwd+0CA56+KO5JNRZpni9Ku9trgal1NQQnhHHQTLx5vtD+MOz3bFMB4sD3hiAvR7Y1h2ZX/QFTT+2ceqbcEXvFNT6uTDqYzi7EWxZ2kBUPOvKaZEFODexsve+AoSNSEEu4/YpCNeFWCpaR7r9sT87j1RppcR3ouHMz/WW1+y8o41T0HjrLnyzDDM1/2wFi9GhQHd7oCNAsH9jfKttHLS3eJmAk6f0Ks1+6pltC3D22yrk4Tkj5UwqXJwaUEbDqcz/trxMvA0Rvdpyja4CPa6wqsiaWAob7lg4UFA60v3qlPEzEUm8Fntj8QEt4y5RBHQiSTl6WVujHxfr1EtH3VSMJJzJpDfNRt8bBLpREifDyF9GwqemX0lobCsTcH9gqlJe8ICFqokXVdW+GYDUyzQY4BhpdoXfmnyuMYzeSEYEl+kyOElESoGJKg+B7zo7AXzKawOXD9v+IMlIuDQykgfPMBJc6YUtThC+AMOMcRhSdmFNXD1/hCD7oRFmsSc0UQOj43fdJADGI9SPQcuIASqEOvS1EaWV59mERGZMjLuthdv8O9vxiw2Gut3/GxA2v3DWWYU6k8PDPW--97xj7tCrmDd4BQLw--LC2NEtbYim6pQWNSdjyfZw==
4 changes: 4 additions & 0 deletions config/initializers/good_job.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Rails.application.configure do
config.good_job.enable_cron = true
config.good_job.cron = Rails.application.config_for(:schedule)
end
17 changes: 0 additions & 17 deletions config/initializers/sidekiq.rb

This file was deleted.

11 changes: 4 additions & 7 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
Rails.application.routes.draw do
require 'sidekiq/web'
require 'sidekiq/cron/web'

Sidekiq::Web.use Rack::Auth::Basic do |username, password|
ActiveSupport::SecurityUtils.secure_compare(::Digest::SHA256.hexdigest(username), ::Digest::SHA256.hexdigest(Rails.application.credentials.sidekiq_ui_username)) &
ActiveSupport::SecurityUtils.secure_compare(::Digest::SHA256.hexdigest(password), ::Digest::SHA256.hexdigest(Rails.application.credentials.sidekiq_ui_password))
GoodJob::Engine.middleware.use(Rack::Auth::Basic) do |username, password|
ActiveSupport::SecurityUtils.secure_compare(::Digest::SHA256.hexdigest(username), ::Digest::SHA256.hexdigest(Rails.application.credentials.workers_ui_username)) &
ActiveSupport::SecurityUtils.secure_compare(::Digest::SHA256.hexdigest(password), ::Digest::SHA256.hexdigest(Rails.application.credentials.workers_ui_password))
end
mount Sidekiq::Web => '/sidekiq'
mount GoodJob::Engine => '/workers'

draw(:api_entreprise)
draw(:api_particulier)
Expand Down
2 changes: 0 additions & 2 deletions config/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ development:
token_expiration_notice:
cron: '0 1 * * *'
class: 'TokenExpirationNoticeJob'
queue: default

production: &deployed
token_expiration_notice:
cron: '0 */4 * * *'
class: 'TokenExpirationNoticeJob'
queue: default

staging: *deployed
sandbox: *deployed
88 changes: 88 additions & 0 deletions db/migrate/20231020161819_create_good_jobs.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# frozen_string_literal: true

class CreateGoodJobs < ActiveRecord::Migration[7.1]
def change
# Uncomment for Postgres v12 or earlier to enable gen_random_uuid() support
# enable_extension 'pgcrypto'

create_table :good_jobs, id: :uuid do |t|
t.text :queue_name
t.integer :priority
t.jsonb :serialized_params
t.datetime :scheduled_at
t.datetime :performed_at
t.datetime :finished_at
t.text :error

t.timestamps

t.uuid :active_job_id
t.text :concurrency_key
t.text :cron_key
t.uuid :retried_good_job_id
t.datetime :cron_at

t.uuid :batch_id
t.uuid :batch_callback_id

t.boolean :is_discrete
t.integer :executions_count
t.text :job_class
t.integer :error_event, limit: 2
end

create_table :good_job_batches, id: :uuid do |t|
t.timestamps
t.text :description
t.jsonb :serialized_properties
t.text :on_finish
t.text :on_success
t.text :on_discard
t.text :callback_queue_name
t.integer :callback_priority
t.datetime :enqueued_at
t.datetime :discarded_at
t.datetime :finished_at
end

create_table :good_job_executions, id: :uuid do |t|
t.timestamps

t.uuid :active_job_id, null: false
t.text :job_class
t.text :queue_name
t.jsonb :serialized_params
t.datetime :scheduled_at
t.datetime :finished_at
t.text :error
t.integer :error_event, limit: 2
end

create_table :good_job_processes, id: :uuid do |t|
t.timestamps
t.jsonb :state
end

create_table :good_job_settings, id: :uuid do |t|
t.timestamps
t.text :key
t.jsonb :value
t.index :key, unique: true
end

add_index :good_jobs, :scheduled_at, where: "(finished_at IS NULL)", name: "index_good_jobs_on_scheduled_at"
add_index :good_jobs, [:queue_name, :scheduled_at], where: "(finished_at IS NULL)", name: :index_good_jobs_on_queue_name_and_scheduled_at
add_index :good_jobs, [:active_job_id, :created_at], name: :index_good_jobs_on_active_job_id_and_created_at
add_index :good_jobs, :concurrency_key, where: "(finished_at IS NULL)", name: :index_good_jobs_on_concurrency_key_when_unfinished
add_index :good_jobs, [:cron_key, :created_at], name: :index_good_jobs_on_cron_key_and_created_at
add_index :good_jobs, [:cron_key, :cron_at], name: :index_good_jobs_on_cron_key_and_cron_at, unique: true
add_index :good_jobs, [:active_job_id], name: :index_good_jobs_on_active_job_id
add_index :good_jobs, [:finished_at], where: "retried_good_job_id IS NULL AND finished_at IS NOT NULL", name: :index_good_jobs_jobs_on_finished_at
add_index :good_jobs, [:priority, :created_at], order: { priority: "DESC NULLS LAST", created_at: :asc },
where: "finished_at IS NULL", name: :index_good_jobs_jobs_on_priority_created_at_when_unfinished
add_index :good_jobs, [:batch_id], where: "batch_id IS NOT NULL"
add_index :good_jobs, [:batch_callback_id], where: "batch_callback_id IS NOT NULL"

add_index :good_job_executions, [:active_job_id, :created_at], name: :index_good_job_executions_on_active_job_id_and_created_at
end
end
79 changes: 78 additions & 1 deletion db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ services:
links:
- db
- redis
sidekiq:
workers:
build: .
command: bundle exec sidekiq
command: bundle exec good_job start
volumes:
- .:/app
depends_on:
Expand All @@ -42,6 +42,5 @@ services:
- redis
environment:
- RAILS_ENV=development
- REDIS_URL=redis://redis:6379/0
- POSTGRES_HOST=db
- REDIS_HOST=redis

0 comments on commit d1fcc02

Please sign in to comment.