Skip to content

Commit

Permalink
Remove celluloid stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Oct 6, 2015
1 parent 810e066 commit ea46ad6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions bin/sidekiqload
Expand Up @@ -3,13 +3,9 @@
# Quiet some warnings we see when running in warning mode:
# RUBYOPT=-w bundle exec sidekiq
$TESTING = false
$CELLULOID_DEBUG = false

require 'celluloid/current'
puts Celluloid::VERSION
require_relative '../lib/sidekiq/cli'
require_relative '../lib/sidekiq/launcher'
Celluloid.logger = nil

include Sidekiq::Util

Expand Down Expand Up @@ -56,8 +52,7 @@ def handle_signal(launcher, sig)
raise Interrupt
when 'USR1'
Sidekiq.logger.info "Received USR1, no longer accepting new work"
launcher.manager.async.stop
#fire_event(:quiet, true)
launcher.quiet
when 'USR2'
if Sidekiq.options[:logfile]
Sidekiq.logger.info "Received USR2, reopening log file"
Expand Down Expand Up @@ -112,7 +107,6 @@ Monitoring = Thread.new do
Sidekiq.logger.error("RSS: #{Process.rss} Pending: #{total}")
if total == 0
Sidekiq.logger.error("Done")
Celluloid.shutdown
exit(0)
end
end
Expand Down

0 comments on commit ea46ad6

Please sign in to comment.