jeudi 2 avril 2015

Capistrano-resque commands not running


Vote count:

0




I've installed resque-scheduler, but for some reason when I try to run the



bin/cap production -vT | grep resque


I get nothing.


First I have a hypothesis, in my unicorn.rb I have:



root = "/opt/www/mk/current"
working_directory root
pid "#{root}/tmp/pids/unicorn.pid"
stderr_path "#{root}/log/unicorn.log"
stdout_path "#{root}/log/unicorn.log"

listen "/tmp/unicorn.mk.sock"
worker_processes 1
timeout 30


could the problem be that worker_processes is 1?


Now I have my resque.rake here:



require 'resque/tasks'
require 'resque/scheduler/tasks'

namespace :resque do
task :setup do
require 'resque'
Resque.redis = ENV['REDIS_SERVER']
end
task :setup_schedule => :setup do
require 'resque-scheduler'
Resque.schedule = YAML.load_file("#{Rails.root}/config/resque_schedule.yml")
end

task :scheduler_setup => :setup_schedule
end


and my deploy.rb here where the environmental variable links to my remote



role :resque_worker, ENV['RAILS_SERVER']
role :resque_scheduler, ENV['RAILS_SERVER']

set :workers, {
"auto_queue" => 1,
"cleanup_favorite_queue" => 1,
"follower_ids_queue" => 1,
"ids_queue" => 1,
"favorite_queue" => 1
}


As I said if I try to execute a bin/cap command where the stage is production all it does when I push enter is nothing, it just goes to the next line.



asked 37 secs ago

sja

80






Capistrano-resque commands not running

Aucun commentaire:

Enregistrer un commentaire