Top Level Namespace

Defined Under Namespace

Modules: WorkflowManager Classes: JobChecker, JobWorker, OptionParser, Redis

Constant Summary collapse

WORKER_INTERVAL =
s
10
REDIS_CONF =
File.expand_path("../../config/environments/redis.conf", __FILE__)
PORT =
if File.exist?(REDIS_CONF)
  redis_conf = Hash[*File.readlines(REDIS_CONF).map{|line| line.chomp.split}.map{|e| [e[0], e[1,100].join(",")]}.flatten]
  redis_conf["port"].to_i
else
  6379
end
SIDEKIQ_URL =
"redis://localhost:#{PORT}/3"