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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With