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 23, 2023
1 parent 3bcff1b commit a9a7758
Show file tree
Hide file tree
Showing 14 changed files with 190 additions and 48 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/+c0sxuv5J62WlP8U2Nj0tms8xE337jmF31DAd7djaj3TUHIRWccMc5mCO4oxgGyDbpL5hufmf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7VsXvfFdKsLEmadxgKYZ793RQQOwBLaNqxAd6T5Z2PUayhTXfpti83BpkT0qmH5ddDmMSW8sVgiY0lz1fiMVRkrsMVasGd4=--vVO53cgf2j5u6ctd--jxW9FDy+n0r4EXc4nlWOgQ==
2 changes: 1 addition & 1 deletion config/credentials/sandbox.yml.enc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Bz/N9rLw6xDfAtnu4uHr7sN82iH0yzKc63hB9RnovvrzFEPfFr/8wJSvbaRb4lra5Y0xXxq9i3ba6n09gNvMJQUs3vkgX5EviFZ1aXFZpS/N3xXNFfJAhvV5zfnQs9hFQaRKzcknK3wMO36gsOgaanIuB4AZZvu92Y4iT9QFGoIDHhVgFVhHCgI5sk6jvL51PNX20WsVE+Wj+uuZ10BCpxnlBKrSpEt7NrCsslPoA+Kudpl1dWIi6uNxbGfAnE1G1MCYXYcumrcl8UXT2r6NKfEVhjE9EYRq0smvKetPtzYuiiSO3abezWn5we0Wa5VQgjWHrHDaXjD7Tu8uM56PGcKkRxZWo9i5ywZfxZPUWVZ3L3PEcIw1Qj1eCw8SaCJxRjKZF+DUHzRpIGv+W8FIXS8f8nWSvMQAhZ+maN3G1+lNK0zZk+qpnLxZrcBSbVJYbIkmfoRMjm1gykMZ/KqwBLmPvEDUrWMGi/JaAJTwMdxknLR99MOXTEp2HFVmrSbmHqp1I2WPZufNwINM090LqlQiU1bOxsdFNiametTXHwucMtWi7o52UHI7cVpBVAgSpP/2bisl+eDBp1jkQPnAa1qZ4VInQqE9lKIkkV5ro4yubiRdpqKxcaa1s5sEQI4f1xECU1Ep1kfENcSsKQDd2nBHf+B1Kwm9x+4lGwU3qthBxTCE40rkuNnVeaYySgudW5QL1Kd0aEUDHoPiSD0MI7drvvn7NFNCg8cJp8aKQCNilH7xc7CXg6E3Pz/FQ6NY+1GXYMEamiLbWQHi73t/wscvotxndh1DtKK7O+5Zoqr7jFF8NVBXXZ/YnI83oivaKCydDot2tgDcXBSPdIEt9R0qYe+0009our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LB0QjTU0rZeFKwV14segeAHwdfRRugDjlxqybCusp4S+8mF7/bAmFMb/k4FN/dxBebLY8zCvoha0LzxyyNadhdBfAIQmFp2MHFo9g==--W1v4kYQevnkXYsht--Bg+nXyi+fxRyru76CmiuaQ==
2 changes: 1 addition & 1 deletion config/credentials/staging.yml.enc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
qFvCIpZgSaycp0BsFa9sB9rWz78NJO4VQHiFN2qmeDotnpikucdC7qjKIcydZnVBFLwfQkMHJ5GT+rWI/cDnyVnMRU+U4KLHcTEgpz3Z9eZlT3PxGq+4XixfaESBQdxULRGyHSOt9eUo1o8E+ZKcTK3u+d7lbx6xpc2MN17ibpgjfLEZrjzWTNVPb2tsEyjQjFRpm4M+BLL8Hca0Fl/Reix1rWgXQ9NWjsfOrguKgzL4u4rYcdDmthkuffxCKHPvgKK1zGe8pcc8EKrohARXz6eIbaXjEDaC8a9DuonSwCmYKyNNTN1VVytlX/3cIBLIEqOpXhGwDhptNGsxKT3vSOE6+CyqYKAK/gLCrFkN0rF2kS1bAY+hOVAoWrrCiOQhBc12Up4zCfOm4cEqCWGcv0rkqQ3HXrQynWW2J3/ieyO/LbVqoO9KSZ0w4J0i7attI7Gbq2juINMPa4XMclG0v95lsxgqSSLOdu/yE5sa40SaIXLCnaovSDi1z/1T0311GvvBAuIWkBXZINsrXlQaGAbSxQ82EbxzzCStIfB6w+TzwEPYdhmj/NhdZTrWGp2FnGb/5k4dHX22CCm08c4Wz3XFhl+nG7yZXTabNw2yChf6BmbZLs5E88PNAJlq76QCIdMmtBVDvxL1LtJdHCo822ZrhygZo6ZESFxU7IO/16yy80xfn6TPeczd1Oei4opZl3/gNbq9Lx7RH4ArpkaE7119Lftd6WGH3u4iUi3yEbA6tyIMlNFKS4D9xnsC0vDKmqwnGvg4DUG/qm0AUDr+G1PvqvGmIeUUwkJoekg2FV1Ha6XuzxE/7FrLC8ua7YodjkRWNBtxUwNmiL7rY8mXIFutdVqFkL6hjONd+xd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gBMj4l/888v3u3GEsff65dlMLM0WvqFRHOkQMbB9NgF6UVLdPCOXnGzjO9cbQFioysyRh2IzDCuv06QYLvwXXR5wEabW2s70PLIRnlTSdkSXqXWMQQ4mGvTLRqtg5sLCqw+9W8smm9l4YyKu0XhtNY0Q/n1xvE9s+3zqLr4jVZSUaOmtw==--RQmBLJTAunADaQTx--p83lfwYF7J5rSStde5zDqw==
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/Ih145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Tj5yk5EfLRpEZymfFZ7A5Q127vJvFLnTqx0OVxWX1NsSs4xiOK1cVBjFr3pteqyi2ocMF2A1b1GuGVQBAbBC3/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
Loading

0 comments on commit a9a7758

Please sign in to comment.