php-resque-ex-scheduler icon indicating copy to clipboard operation
php-resque-ex-scheduler copied to clipboard

What queue to poll?

Open StoreRestore opened this issue 9 years ago • 3 comments

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)?

StoreRestore avatar Apr 14 '15 06:04 StoreRestore

Weird, scheduler shouldn't ask for a queue, as it's always polling the same special queue

wa0x6e avatar Apr 15 '15 12:04 wa0x6e

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!

sudosoul avatar Apr 17 '15 02:04 sudosoul

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.

wa0x6e avatar Apr 19 '15 12:04 wa0x6e