lykmapipo / sails-hook-subscriber

Kue based job subscriber(consumer and workers pool) for sails
28 stars 12 forks source link

How can I manually promote. #1

Closed WillStreeter closed 9 years ago

WillStreeter commented 9 years ago

Hi,

I am just giving your pub/sub a go here. When I publish.create(), it correctly is pushed in redis and then loaded with subscriber after 5 seconds. It works great. I was wondering if it is possible to introduce a delay. If whatever reason the Job is not ready to be promoted, how can I manually promote(). Even better if I a manual promote can use the subscriber Worker that has been created...

Thanks P.S. Great Job BTW Will

lykmapipo commented 9 years ago

@WillStreeter

Since sails-hook-subscriber based on Kue:

I was wondering if it is possible to introduce a delay?

If whatever reason the Job is not ready to be promoted, how can I manually promote()?

Even better if I a manual promote can use the subscriber Worker that has been created?

Hope this is helping.