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
1 answer

kue - Unexpected token import

Hi I am trying to import my class in worker and getting following error (function (exports, require, module, __filename, __dirname) { import { Myclass } from '../utility/myclass'; …
user269867
  • 3,266
  • 9
  • 45
  • 65
0
votes
1 answer

Trying to run multiple kue jobs at different times, but they're starting at the same time

I'm trying to run two different jobs on different schedules (see code ex below). For some reason, the job that is supposed to run once a day at 11pm runs every time the other job runs. How do I get them to run when I expect them to run? Thank you…
Stucco
  • 388
  • 5
  • 21
0
votes
1 answer

Kue only run the job once

Im using kue to schedule a job, but its only is executed the first time. Here is my code: Queue.clear(function(error, response) { var job = Queue .createJob("sendStatus") .priority('normal') …
Pablo Cegarra
  • 20,955
  • 12
  • 92
  • 110
0
votes
1 answer

Updating job status in KUE node js

I create a job: var kue = require('kue'); var queue = kue.createQueue(); //name of the queue is myQueue var job = queue.create('myQueue', { from: 'process1', type: 'testMessage', data: { msg: 'Hello world!' …
deeveeABC
  • 960
  • 3
  • 12
  • 34
0
votes
1 answer

Kue not working on events properly?

I have the following codes for sending mail on kue require('dotenv').load(); const mailer = require('../helper/mailer'); const kue = require('kue'), queue = kue.createQueue(); console.log("Starting…
georoot
  • 3,557
  • 1
  • 30
  • 59
0
votes
1 answer

Worker processing multiple job types in Kue

I am just investigating Kue as a job processor. However I am stuck with one concept: Say I have multiple workers, all can process 1 of 2 job types. Code looks something like this: queue.process("job1", 1, (job, done) => { …
Paul Grimshaw
  • 19,894
  • 6
  • 40
  • 59
0
votes
1 answer

Does Kue subscribe to any (*) pattern with Redis?

I am experimenting with Redis and needed queues to receive realtime notifications in nodejs from Redis and publish to connected clients. I used Kue for this purpose. Reading Redis documentation, you subscribe with a channel pattern that you are…
DhaneshM
  • 198
  • 2
  • 9
0
votes
1 answer

Node.js Processing lots of images

I get about 20 frames per second. If I run it like this, it causes the computer to freeze. I think it is because it processes a large number at a time. how can I limit a function to a maximum number of processes it can have.I looked at kue but it…
kg99
  • 117
  • 1
  • 11
0
votes
1 answer

How to manage a queue in nodejs?

I have written a script in Nodejs that takes a screenshot of websites(using slimerJs), this script takes around 10-20 seconds to complete, the problem here is the server is stalled until this script has is finished. app.get('/screenshot', function…
Syed Faizan
  • 901
  • 3
  • 14
  • 28
0
votes
0 answers

Error: job x doesnt exist

Is someone know why this issue my appears and how to catch it? I do not remove any jobs manually, use only .removeOnComplete(true) I have some different job processor for the same job task with different parameters. May it cause the issue? How to be…
Deadly
  • 2,034
  • 6
  • 24
  • 32
0
votes
0 answers

Create multiple jobs in a forEach loop with Kue

I'm trying to create mutliple jobs in a forEach loop with kue, in my forEach I return a new Promise for each created job. Each job has the same key but a different email address in data. However, kue creates all the jobs with the last e-mail address…
Alistair
  • 621
  • 1
  • 7
  • 22
0
votes
1 answer

NodeJS, ParseServer, kue-scheduler Query.every

I'm using ParseServer(v2.2.16) and kue-sheduler(v0.6.0), my Query.every looks like: Queue.every('0 12 * * *', job);, what I expect is that the cron format will initiate the job every day at 12pm, I've tried so many formats but nothing works, after…
Aviel Fedida
  • 4,004
  • 9
  • 54
  • 88
0
votes
1 answer

How to wait for a Redis connection?

I'm currently trying to use Node.js Kue for processing jobs in a queue, but I believe I'm not doing it right. Indeed the way I'm working now, I have two different services (which in this case I'm running with Docker Compose): one Web API built with…
user1620696
  • 10,825
  • 13
  • 60
  • 81
0
votes
2 answers

running background job on a specific action in sails js

i am trying to make a service that runs in background when specific event happens. As an example when user verifies email i want my service of deleting possible unverified duplicate emails form database. i tried using kue to save my purpose but i…
Newbiee
  • 592
  • 6
  • 22
0
votes
1 answer

How to execute code after missing a scheduled event?

I'm building a MEAN roll call app, where a professor opens the app and if there's a class to be taught, he's able to click on it and a lost of the enrolled students shows up. The professor can then mark each student present and click on a "Start…
Assis Ngolo
  • 73
  • 2
  • 9