ReadonlynameThe name of the store (e.g. 'mongodb', 'redis', 'dynamodb')
ReadonlylibraryThe client library being used
Returns the underlying fivebeans client for operations not wrapped here.
Enqueue a job into a tube. Selects the tube via use(), then put()s the
(JSON-serialized) payload with the given priority/delay/ttr. Returns the
job id assigned by the server.
Register a worker on a tube: watch() it, then loop reserve()ing jobs
and invoking handler(job). After the handler resolves the job is
destroy()ed. The loop stops when the store disconnects.
Peek at a job by id, returning its id and payload (or null if absent).
Delete (destroy) a job by id.
Return per-tube statistics (stats-tube), e.g. ready/reserved/buried counts.
BeanstalkdStorewraps a singlefivebeansclient and exposes the common queue surface (enqueue/process/getJob/remove/stats) over Beanstalkd tubes, promisifying the driver's callback API.