php-resque-ex-scheduler
php-resque-ex-scheduler copied to clipboard
What queue to poll?
When starting the scheduler worker, it asks which queue to poll. What is the name of the delayed queue? Or should I just state the name of the destination queue (the queue where the job will be added to)?
Weird, scheduler shouldn't ask for a queue, as it's always polling the same special queue
Interesting, I imagine I am doing something wrong then. I am using the original php branch by the way. And I start the scheduled worker by running this script: https://github.com/chrisboulton/php-resque-scheduler/blob/master/resque-scheduler.php
Specifically, I start it with:
REDIS_BACKEND=external-host-domain:6379 RESQUE_PHP=./Path/To/resque.php php resque-scheduler.php
To which it responds:
Set QUEUE env var containing the list of queues to work.
EDIT: I think this message is coming directly from resque.php. I see in your code you have the queue name specifically defined. Assuming I use the enqueueAt() method, would this still work if I started a regular resque worker and told it to poll the delayed queue? I feel like I tried this though to no prevail. I need to do more testing, but I appreciate any input you can give me (even though I am using the original project). Thanks!
php-resque-ex-scheduler is not compatible with the original php-resque branch. Use https://github.com/chrisboulton/php-resque-scheduler if your want to use the original branch.
No, a regular worker polling the scheduler does not works. The "scheduler" part is implemented in the worker.