I'd like to create a new job like this:
queue.create('sendmessage', {
title: 'some message'
,myJson: JSONObject
}).priority('medium').attempts(5).save((err) => {
if(err) throw err;
});
where JSONObject is a complete json object..
Solution was to cherrypick key/values and pass them as single/separate parameters. Socket.IO's socket object was the failing object.
It works just like my example. It was a second object with references that failed with 'Converting circular structure to JSON'
j
stuff ;)
y dont u use JSON.stringify ?