Skip to content

Commit

Permalink
Fail if bad scout_apm detected, fixes #5616
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Nov 3, 2022
1 parent 2ff4474 commit 7ed013e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/sidekiq/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@
require "sidekiq/component"
require "sidekiq/launcher"

# module ScoutApm
# VERSION = "5.3.1"
# end
fail <<~EOM if defined?(ScoutApm::VERSION) && ScoutApm::VERSION < "5.2.0"
scout_apm v#{ScoutApm::VERSION} is unsafe with Sidekiq 6.5. Please run `bundle up scout_apm` to upgrade to 5.2.0 or greater.
EOM

module Sidekiq # :nodoc:
class CLI
include Sidekiq::Component
Expand Down

0 comments on commit 7ed013e

Please sign in to comment.