Questions tagged [kue]

Kue is a priority job queue backed by redis, built for node.js.

Kue is a feature-rich priority job queue for node.js backed by redis. A key feature of Kue is its clean user-interface for viewing and managing queued, active, failed, and completed jobs.
Kue provides an interactive GUI served by built-in expressjs to manipulate (remove, view, search) jobs from the browser. It also provides a RESTful API to interact with the queues and jobs in a programmatic way.

120 questions
4
votes
0 answers

Kue - Error: Auth error: ERR max number of clients reached

I am getting an redis connection error when depolyed in APP Fog. I don't know if KUE is generating too many connections. Here is stack /mnt/var/vcap.local/dea/apps/kue-0-543205581cf47e8551d042ab06df92e1/app/node_mod ules/redis/index.js:516 throw…
coool
  • 8,085
  • 12
  • 60
  • 80
4
votes
1 answer

How to process scheduled, recurring jobs with Kue?

In my webapp, users can create recurring invoices that need to be generated and sent out at certain dates each month. For example, an invoice might need to be sent out on the 5th of every month. I am using Kue to process all my background jobs so I…
ragulka
  • 4,312
  • 7
  • 48
  • 73
3
votes
1 answer

Getting cannot POST / error in Express

I have a RESTful API that I am using postman to make a call to my route /websites. Whenever I make the call, postman says "Cannot POST /websites". I am trying to implement a job queue and I'm using Express, Kue(Redis) and MongoDB. Here is my routes…
marie
  • 71
  • 1
  • 2
  • 5
3
votes
1 answer

Kue: best practice for continuously processing/polling the queue

What is the best way to continuously process items added to the queue? I see the following method queue.process https://github.com/Automattic/kue#processing-jobs but this will process and return. Items added after this call are obviously not…
Samuel Goldenbaum
  • 18,391
  • 17
  • 66
  • 104
3
votes
1 answer

How do I disable CORS in kue?

I want to export Kue-api ( hosted on localhost:3001 ) and access it via node-express ( hosted on localhost:3000 ). But it is blocked because of CORS . In a typical node app , CORS can be disabled like this. var cors = require('cors'); …
rajesk
  • 1,407
  • 1
  • 9
  • 8
3
votes
1 answer

Kue: event to tell once the queue is empty

I am using kue in one of my project to remove stale locks from the database. I am able to process individual jobs, like updating individual documents in mongoDB. var kue = require('kue') , queue = kue.createQueue(); queue.process('staleLocks',…
Rudra
  • 1,678
  • 16
  • 29
3
votes
1 answer

Conditional attempts with nodejs Kue

I'm using kue in one web crawler application. I want to set attempts for certain failed jobs if the errors match specific conditions. For instance if the error is caused by socket hang up, the job will retry for 3 times with 1 min interval. My code…
duckegg
  • 1,379
  • 2
  • 13
  • 20
3
votes
2 answers

Testing Node.js application that uses Kue

I would like to test an application that uses Kue so that job queue is empty before each test and cleared after each test. Queue should be fully functional and I need to be able to check status of jobs that are already in the queue. I tried…
Ilija
  • 4,105
  • 4
  • 32
  • 46
3
votes
1 answer

Kue UI (Express) parallel to Hapi.JS API-Server

I want to use the UI from Kue (https://github.com/Automattic/kue) parallel to my Hapi.js Application. The Kui UI is build with Express. Hapi and Express are listening on port 80 on my heroku dyno. How can I do that? Can someone give me an example?
tiefenb
  • 732
  • 3
  • 16
  • 32
3
votes
1 answer

Javascript - functions on functions?

I've recently used a nice library for node.js called Kue. I wanted to get some better understanding of what's going so I started reading the code... I stumbled on to a piece of code and my mind went "WTF!!?!@$@!$"... This is the code: function…
Alex Zak
  • 1,924
  • 2
  • 18
  • 26
3
votes
1 answer

adding a job to a queue in kue

From the kue docs,creating a queue and adding job is is easy but i cannot follow how the job is being stored var kue = require('kue') jobs = kue.createQueue(); adding a job jobs.create('email', { title: 'welcome email for tj' , to:…
Gandalf
  • 1
  • 29
  • 94
  • 165
3
votes
2 answers

Fetching the result of a Kue job and pushing this to the client over open connection

I have an API endpoint that serves some JSON from a MongoDB. Simply like so: router.get('/api/links', function (req, res) { // Find existing links links.find({ feed: 1 }, function (err, links) { res.json(links) }) }) I would like this…
user1082754
3
votes
1 answer

Node.js Kue worker send result

My app makes use of Kue to queue up requests, which are handled by worker.js because I need to send the requests that the job makes through Proximo - it's a little confusing. But because of this, the results of the job are unable to be sent back to…
James
  • 5,137
  • 5
  • 40
  • 80
3
votes
2 answers

Is this leaking memory?

My code is leaking memory. After a couple of hours, it fills up the entire memory and crashes. I've simplified my code here, would anybody be able to tell if this looks like it leaks? Thanks. var request = require('request').forever(), // as per…
WindChimes
  • 2,955
  • 4
  • 25
  • 26
2
votes
1 answer

Kue connecting to localhost instead of the AWS elasticache host

I'm passing these configurations to my queue: module.exports = { host: 'xxxxx-cluster.abnjj1.ng.0001.use1.cache.amazonaws.com', port: 6379 } And creating the kue: const kue = require('kue') const MailJob =…
Laura Beatris
  • 1,782
  • 7
  • 29
  • 49