9z0b3t1c / capistrano-resque

Capistrano integration for Resque

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Resque scheduler wont run in background

swistaczek opened this issue · comments

Hi,
I try to use "resque:scheduler:start" task but I found out that resque scheduler wont run in background:

*** [Resque Scheduler] Resque scheduler not running
  * executing `resque:scheduler:start'
  * executing "cd /home/homecard/app/production/current && RAILS_ENV=production PIDFILE=./tmp/pids/scheduler.pid BACKGROUND=yes bundle exec rake resque:scheduler"
    servers: ["homecard.com.pl"]
    [homecard.com.pl] executing command
 ** [out :: homecard.com.pl] 2012-09-03 00:45:07 Scheduling generate_invoices
... keps hanging

I'm having same problem

Also it's probably an issue of rescue-scheduler, not capistrano-resquesince manual start hangs also:

root@web-1:/var/www/apps/mps/current# RAILS_ENV=production PIDFILE=./tmp/pids/scheduler.pid BACKGROUND=yes bundle exec rake resque:scheduler
2012-09-08 12:03:45 Scheduling send_new_jobs_notifications 
   ...... zzZZZ... it hangs :( ....

Using gem 'resque-scheduler', '~> 2.0.0.h' in my Gemfile solved the problem for me, as described here -- so i can confirm the issue is related to resque-scheduler! We just need to wait until the new version gets released.