Skip to content

Commit

Permalink
Merge branch '2872-remove-sidekiq-middleware' into qa
Browse files Browse the repository at this point in the history
  • Loading branch information
shaun-technovation committed Sep 1, 2021
2 parents 9ffa957 + b431668 commit 8bb71d5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 77 deletions.
9 changes: 0 additions & 9 deletions config/initializers/sidekiq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@
ActiveRecord::Base.establish_connection "#{database_url}?pool=#{pool}"
end

if ENV["PROFILE_SIDEKIQ"].present?
require "sidekiq_profiler"
ObjectSpace.trace_object_allocations_start
Sidekiq.logger.info "allocations tracing enabled"
config.server_middleware do |chain|
chain.add Sidekiq::Middleware::Server::Profiler
end
end

config.default_retries_exhausted = -> (msg, ex) do
job_id = msg.dig('args', 0, 'job_id')

Expand Down
68 changes: 0 additions & 68 deletions lib/sidekiq_profiler.rb

This file was deleted.

0 comments on commit 8bb71d5

Please sign in to comment.