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

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct