Sign in
Log inSign up

Is it possible to pass a json object as a parameter for new jobs with Kue?

Frode Fuglestad's photo
Frode Fuglestad
·Dec 7, 2016

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..