Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resque-scheduler loading schedules but not enqueuing them

When I run

rake resque:scheduler RAILS_ENV=production

I get the following output:

2013-09-19 18:16:16 Reloading Schedule
2013-09-19 18:16:16 Loading Schedule
2013-09-19 18:16:16 Scheduling aa_job 
2013-09-19 18:16:16 Scheduling bb_job 
2013-09-19 18:16:16 Scheduling cc_aggregator 
2013-09-19 18:16:16 Schedules Loaded

However I can see that none of this jobs get actually enqueued.I know my worker is up and running because if I do something like

Resque.enqueue(aa_job)

It gets enqueue and executed as expected.

Other thing, if I do Resque.schedule in my Rails console, I get {} (empty)

Any Ideas?

Thanks.

like image 373
content01 Avatar asked Sep 19 '13 18:09

content01


1 Answers

did you have workers on the corresponding queue?

resque_scheduler is only responsible for enqueueing jobs , i.e: you need to run both:

rake resque:scheduler RAILS_ENV=production and QUEUE=* rake resque:work

like image 95
Gecko-Gecko Avatar answered Nov 18 '22 21:11

Gecko-Gecko