Base Worker Module for Cloudq
A base worker class for cloudq
npm install cloudq-worker
var Worker = require.Worker;var worker = new Worker
The config should match the nodejs
urlObj dsl with one additional key,
interval if this is not set then the default will 1sec.
err - null if not error, otherwise the error of the request doc - is the document containing the cloudq job done - is the function to call when you are finished processing the job, it will set the job to completed on cloudq. You must pass the doc.id and MAY pass a callback function to capture the result of the request to mark the job complete.
All pull requests are welcome