Skip to content

Commit

Permalink
remove sidekiq
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmeurer committed Oct 10, 2024
1 parent e469179 commit 9bb8c3d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 49 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ gem "redis-namespace", "~> 1.11"
gem "redis", "~> 5.0"
gem "sdoc", github: "rails/sdoc" # TODO: use released version when 3.x is released
gem "sentry-rails", "~> 5.5"
gem "sentry-sidekiq", "~> 5.5"
gem "sidekiq", "~> 7.2"
gem "sitemap_generator", "~> 6.3"
gem "sqlite3", "~> 2.0"
gem "stimulus-rails", "~> 1.3"
Expand Down
12 changes: 0 additions & 12 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ GEM
activemodel (>= 6.0.0)
activesupport (>= 6.0.0)
redis (>= 4.2, < 6)
logger (1.6.1)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
Expand Down Expand Up @@ -288,15 +287,6 @@ GEM
sentry-ruby (5.21.0)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
sentry-sidekiq (5.21.0)
sentry-ruby (~> 5.21.0)
sidekiq (>= 3.0)
sidekiq (7.3.2)
concurrent-ruby (< 2)
connection_pool (>= 2.3.0)
logger
rack (>= 2.2.4)
redis-client (>= 0.22.2)
sitemap_generator (6.3.0)
builder (~> 3.0)
sqlite3 (2.1.0-arm64-darwin)
Expand Down Expand Up @@ -350,8 +340,6 @@ DEPENDENCIES
redis-namespace (~> 1.11)
sdoc!
sentry-rails (~> 5.5)
sentry-sidekiq (~> 5.5)
sidekiq (~> 7.2)
sitemap_generator (~> 6.3)
sqlite3 (~> 2.0)
stimulus-rails (~> 1.3)
Expand Down
21 changes: 0 additions & 21 deletions config/puma.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require "sidekiq"

threads_count = ENV.fetch("RAILS_MAX_THREADS", 3)
threads threads_count, threads_count

Expand All @@ -17,22 +15,3 @@
end

preload_app!

sidekiq = nil

on_worker_boot do
Sidekiq.default_job_options = {
"retry" => false
}
Sidekiq.strict_args!(:warn)
sidekiq = Sidekiq.configure_embed do |config|
config.concurrency = 1
config.redis = {
url: Baseline::RedisURL.fetch
}
end.tap(&:run)
end

on_worker_shutdown do
sidekiq&.stop
end
14 changes: 0 additions & 14 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
require "sidekiq/web"

if Rails.env.production?
Sidekiq::Web.use Rack::Auth::Basic do |username, password|
{
username => "SIDEKIQ_USERNAME",
password => "SIDEKIQ_PASSWORD"
}.map { ActiveSupport::SecurityUtils.secure_compare _1, ENV.fetch(_2) }
.all?
end
end

Rails.application.routes.draw do
mount Sidekiq::Web => "sidekiq"

root "application#home"

get "up" => "rails/health#show", as: :rails_health_check
Expand Down

0 comments on commit 9bb8c3d

Please sign in to comment.