Skip to content

There seems to be an issue with Kue where it processes a job multiple times

Notifications You must be signed in to change notification settings

kimballfrank/kue-cluster-f

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kue-cluster-f

There seems to be an issue with Kue where it processes a job multiple times when configured a certain way. Make sure to let it run for a little bit. It will eventually reproduce the error.

Install

  1. install redis / nodejs / npm
  2. git clone https://github.com/kimballfrank/kue-cluster-f.git
  3. cd kue-cluster-f
  4. npm install

Run in seperate terminals

  1. redis-server
  2. node server.js
  3. node scheduler.js

About

server.js

A nodejs cluster with 4 workers. Each worker is Kue wrapped in Express. The app is listening on port 3600

http://127.0.0.1:3600

scheduler.js

scheduler.js uses Kue JSON api to create a new testJob every 10 seconds, the jobs are delayed to test if delayed jobs are contributing to the issue. Remove the delay to see if it reproduces without. I have not been able to reproduce it that way yet.

testJob.js

A barebones job that just logs the job.id and the pid at start and at done.

Additional Info

Node Version: v0.10.29 NPM Version: 1.5.0-alpha-3 Redis server v=2.8.13 sha=00000000:0 malloc=libc bits=64 build=96319fcc2102d7fa

Kue Version: 0.8.3

OSX Version: 10.9.4 2.3Ghz Intel Core i7

About

There seems to be an issue with Kue where it processes a job multiple times

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published