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
0
votes
2 answers

How create a JS date object considering timezone Node.js / javascript

Hi i am working with node.js and kue , i want to delay a job to a future time , what i do is i pass a js date object like this var today=new Date(); today.setHours(23,00,00); var email = queue.create('email', { title: 'Account renewal…
Kanishka Panamaldeniya
  • 17,302
  • 31
  • 123
  • 193
0
votes
1 answer

Kue crashes parse server

I'm trying to use kue for scheduled jobs on my Parse Server (hosted on heroku). For now I've modified my index.js file like so as stated in the several tutorials I found about Kue : var express = require('express') , kue = require('due') ,…
Ambroise Collon
  • 3,839
  • 3
  • 18
  • 37
0
votes
1 answer

Kue - TypeError: Cannot read property 'zcard' of null

TypeError: Cannot read property 'zcard' of null at Queue.card (/Users/narain/Sites/integrity-automation/node_modules/kue/lib/kue.js:513:14) at Queue.inactiveCount (/Users/narain/Sites/integrity-automation/node_modules/kue/lib/kue.js:616:17) …
narainsagar
  • 1,079
  • 2
  • 13
  • 29
0
votes
1 answer

How to get notified when a new job in redis is added

I am implementing redis queue with Kue in my nodejs app. I have an API which will add email jobs to an email queue. Is it a good practice to have a cron job listening to the redis email queue for new jobs or is there a way by which an event is fired…
Jaseem Abbas
  • 5,028
  • 6
  • 48
  • 73
0
votes
1 answer

kue node.js process jobs behaviour

i started to use kue/node.js . I checked a tutorial and it had this code var kue = require('kue') , queue = kue.createQueue(); function newJob (){ var job = queue.create('new_job'); job.save(); } queue.process('new_job', function…
Kanishka Panamaldeniya
  • 17,302
  • 31
  • 123
  • 193
0
votes
1 answer

Kue job progress from client

Im running a heroku app with a background worker processing jobs with Kue. Because heroku terminates and restarts any request which takes more than 30 seconds, I ended up sending a response back to client on jobs.create() (before it is…
lifwanian
  • 644
  • 1
  • 7
  • 19
0
votes
0 answers

Why is the same Job being repeated in kue?

I am looping through a bunch of records in mongodb and putting them in kue for some processing, I won't put in all that code here because it really does not seem to apply but I do something like the following: var record; for(var x = 0; x <…
user254694
  • 1,461
  • 2
  • 23
  • 46
0
votes
1 answer

Are worker processes necessary for external API calls in node.js?

I know that "blocking" server architectures like Rails require you to offload time-intensive external API calls to worker processes (i.e. job queues) in order to prevent them from blocking the server process. Is this also the case for node.js? Or…
S. Emmer
  • 93
  • 7
0
votes
1 answer

Error while running test code of Kue(nodejs)

I have installed Kue and all its dependencies. On running nodejs testing.js The following error appears > > /home/garima/node_modules/kue/test/test.js:3 describe('Jobs', function () { ^ ReferenceError: describe is not defined > at…
garima
  • 5,154
  • 11
  • 46
  • 77
0
votes
2 answers

How does SailsJS handle push messages to connected sockets with more dyno's in Heroku?

I've got a question about scaling a SailJS app on Heroku. The setup : SailJS Kue (Redis queueing system) Connected clients by means of socket io (sailsjs) 2 dyno's (each run a SailsJS instance) CronJob kind of process I want to autonomously run a…
kaasdude
  • 1,336
  • 2
  • 8
  • 13
0
votes
1 answer

Running into out of order issue with my task queue (kue.js)

I'm not really sure how to fix this, but it's rather annoying and screwing up things for me in production. I'm using kue.js to complete a task after a user has done something. The most typical case on my site is for uploading images and sending…
bob_cobb
  • 2,229
  • 11
  • 49
  • 109
0
votes
1 answer

node.js : how to make express app communicate with kue running on different cpu of same box?

My app will need to do some cpu intensive processing, so I'm thinking of doing that as a background job. I want both the express app and kue to run on the same box (different cores). How do I do that? And how do the main app and the job queue…
tldr
  • 11,924
  • 15
  • 75
  • 120
0
votes
2 answers

error appearing in kue ui when trying to run it

This is the error in the kue ui at localhost:6379/active in my web browser. TypeError: E:\development\workspace\wmtservices\node_modules\kue\lib\http\views\_filter.jade:3 1| select#filter 2| option(value='') filter by > 3| - each type in…
sinha
  • 1
  • 1
0
votes
1 answer

how to solve Error: Cannot find module 'kue'

I am getting started on kue job queue an i am trying out if my producer works producer.js var kue = require('kue') , redis = require('redis'); kue.redis.createClient = function() { var client = redis.createClient(6379, '127.0.0.1'); …
Gandalf
  • 1
  • 29
  • 94
  • 165
0
votes
1 answer

Is it okay to produce and consume jobs in the same node process with Kue?

Looking at Kue (https://github.com/LearnBoost/kue) I am somewhat confused whether I can just produce and consume jobs in the same node process or do I need to launch the consumer in a separate node process? I need to offload some CPU-heavy tasks…
ragulka
  • 4,312
  • 7
  • 48
  • 73
1 2 3 4 5 6 7
8