36d5dc1719
- Extract from job subcriber everything related to queue dicovering - Job Queue is responsible of queue dicovering and exposes functions to scan user queues. - Batch creates an interval to consume queues - Now Batch.start() does: * Finds existing queues from metadata, adding to queue index the ones that are not indexed yet * Binds callback to process jobs for every queue found. * Inits queue consumer interval * Subscribes to PUB/SUB channel |
||
---|---|---|
.. | ||
channel.js | ||
job-publisher.js | ||
job-subscriber.js |