Created
March 22, 2017 15:50
-
-
Save pingles/eee9edecc009e365e6430c003968970e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'bundler/setup' | |
require 'sidekiq' | |
require 'sidekiq/api' | |
Sidekiq.configure_server do |server| | |
config.redis = {url: ENV["REDIS_URL"] || "redis://localhost:6379/12"} | |
end | |
workers = Sidekiq::ProcessSet.new.size | |
if workers == 0 | |
STDERR.puts "no workers" | |
exit 1 | |
end | |
puts "#{workers} active workers" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment