Skip to content

Commit

Permalink
Fixes regression after refactoring (Closes #4456) (#4457)
Browse files Browse the repository at this point in the history
With the refactoring done in the commit 4d88319, the `sidekiqctl` command was crashing with the error "NameError: uninitialized constant Sidekiq::Ctl::Sidekiqctl" which this commit solve.
  • Loading branch information
zedtux authored Feb 10, 2020
1 parent 69b8f69 commit 315d83f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sidekiq/ctl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ def self.print_usage
puts
puts " <pidfile> is path to a pidfile"
puts " <kill_timeout> is number of seconds to wait until Sidekiq exits"
puts " (default: #{Sidekiqctl::DEFAULT_KILL_TIMEOUT}), after which Sidekiq will be KILL'd"
puts " (default: #{Sidekiq::Ctl::DEFAULT_KILL_TIMEOUT}), after which Sidekiq will be KILL'd"
puts
puts " <section> (optional) view a specific section of the status output"
puts " Valid sections are: #{Sidekiqctl::Status::VALID_SECTIONS.join(', ')}"
puts " Valid sections are: #{Sidekiq::Ctl::Status::VALID_SECTIONS.join(', ')}"
puts
puts "Be sure to set the kill_timeout LONGER than Sidekiq's -t timeout. If you want"
puts "to wait 60 seconds for jobs to finish, use `sidekiq -t 60` and `sidekiqctl stop"
Expand Down

0 comments on commit 315d83f

Please sign in to comment.