monq
monq copied to clipboard
MongoDB-backed job queue for Node.js
`worker.register({ reverse: function (params, callback) { try { var reversed = params.text.split('').reverse().join(''); callback(null, reversed); } catch (err) { callback(err); } } });` As I have understood, in this code `reverse`...
I have an Server which randomly produces job like a publisher. Monq is being used as a job queue. Consumer can consume whenever it is up. The issue is after...
How can i provide DB credentials(username and password) and other options(replSet, strategy, poolSize, etc.,) while initialising the connection ? For example, below is my `db.options` ```` config.db.options = { db:...
I want to use monq to execute time-consuming operation in Node application. Is monq constantly listening for `jobs` collection in mongoDB? And will it block Node thread?
I'm getting this error in my tests: console.error node_modules/monq/lib/db.js:26 Error { name: 'MongoError', message: 'no index name specified', ok: 0, errmsg: 'no index name specified', code: 67 } Any idea...
If the collection doesn't exists, I get this error (only at the first run): `{ [MongoError: no collection] name: 'MongoError', message: 'no collection', ok: 0, errmsg: 'no collection', code: 26...
Possibly related to: https://github.com/christkv/mongodb-core/issues/118
I am capturing and making a **callback(err)** with my error message. However, I do not see the error value being captured in jobs collection. Can someone help me?