Burstable
Simple and powerful task queue for Node.js on top of Beanstalkd
Features
- Wait for job completion
- Child jobs (keeping parent alive till done)
How-To
Setup
; const burstable = host // beanstalkd host port // beanstalkd port // Will receive job errors and job log calls { winston; // meta will be enhanced with tube and jobId } ;
Spawning jobs
burstable;
Handling jobs
burstable; burstablestart; // Enable handlers and start processing jobs, make sure handlers are setup before calling start
Keep in mind that burstable will spawn a connection equal to width * amount of tubes. You'll want to make sure that your server is configured to handle that amount of connections (ulimit).
Debugging
Use DEBUG=burstable*
to enable verbose debugging.