Simple ETCD backed job queue
This package is in a very early stage and for the moment only supports simple leader election, but the plan is to have it be a fully fledged job queue.
Create a new broker instance:
const broker = new Broker({ queue: 'default' });
// Attach to ETCD queue
broker.attach();
Name of queue to join, this will be used as ETCD key prefix.
String or array of etcd hosts that is passed to @forest.host/etcd3
Log level of broker module
Etcd leader election timeout
Etcd leader election campaign value