Grails-Plugin-Consortium / grails-jesque

1 stars 5 forks source link

use delayed job feature provided by jesque #27

Closed bp-FLN closed 5 years ago

bp-FLN commented 6 years ago

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.