Skip to content

Commit

Permalink
Revert "Pause the analytics queue"
Browse files Browse the repository at this point in the history
This reverts commit 74ef79e.

We no longer need this as the worker count is currently being used to
provide the same functionality.
  • Loading branch information
felixclack committed Jul 21, 2023
1 parent 74ef79e commit 00eeefc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ gem "rails", "~> 7.0.6"
gem "rails_semantic_logger"
gem "sentry-rails", "~> 5.10"
gem "sidekiq"
gem "sidekiq-queue-pause"
gem "tzinfo-data", platforms: %i[mingw mswin x64_mingw jruby]

group :development, :test do
Expand Down
15 changes: 7 additions & 8 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,8 @@ GEM
rake (13.0.6)
rbs (2.8.4)
redcarpet (3.6.0)
redis (4.8.1)
redis-client (0.14.1)
connection_pool
regexp_parser (2.8.1)
representable (3.2.0)
declarative (< 0.1.0)
Expand Down Expand Up @@ -470,12 +471,11 @@ GEM
concurrent-ruby (~> 1.0, >= 1.0.2)
shoulda-matchers (5.3.0)
activesupport (>= 5.2.0)
sidekiq (6.5.9)
connection_pool (>= 2.2.5, < 3)
rack (~> 2.0)
redis (>= 4.5.0, < 5)
sidekiq-queue-pause (0.1.1)
sidekiq (>= 6.0, < 7.0)
sidekiq (7.1.2)
concurrent-ruby (< 2)
connection_pool (>= 2.3.0)
rack (>= 2.2.4)
redis-client (>= 0.14.0)
signet (0.17.0)
addressable (~> 2.8)
faraday (>= 0.17.5, < 3.a)
Expand Down Expand Up @@ -618,7 +618,6 @@ DEPENDENCIES
sentry-rails (~> 5.10)
shoulda-matchers
sidekiq
sidekiq-queue-pause
sinatra
solargraph
solargraph-rails
Expand Down
5 changes: 0 additions & 5 deletions config/initializers/sidekiq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@

Sidekiq.configure_server do |config|
config.redis = { url: ENV.fetch("REDIS_URL", "redis://localhost:6379/1") }
Sidekiq.options[:fetch] = Sidekiq::QueuePause::PausingFetch.new(
Sidekiq.options
)
end

Sidekiq.configure_client do |config|
config.redis = { url: ENV.fetch("REDIS_URL", "redis://localhost:6379/1") }
end

Sidekiq::QueuePause.pause(DfE::Analytics.config.queue) unless Rails.env.test?

0 comments on commit 00eeefc

Please sign in to comment.