This patch makes use of the delayed job feature provided by jesque.
The jesque feature is much more light-weight compared to the polling job.
Unfortunately it works a bit different, but best-efforts have been made to
keep the old behaviour. So for example jesque does not allow a queue to be regular
and delayed at the same time.
We automatically add a "delayed" queue for each configured queue and make the workers poll on it.
So e.g. if you have configured a "FooQueue", a "FooQeueuDelayed" will be added.
In the end this allows to use the same queue name for the enqueue and enqueueAt methods.
This patch makes use of the delayed job feature provided by jesque. The jesque feature is much more light-weight compared to the polling job.
Unfortunately it works a bit different, but best-efforts have been made to keep the old behaviour. So for example jesque does not allow a queue to be regular and delayed at the same time. We automatically add a "delayed" queue for each configured queue and make the workers poll on it. So e.g. if you have configured a "FooQueue", a "FooQeueuDelayed" will be added. In the end this allows to use the same queue name for the
enqueue
andenqueueAt
methods.