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 redis / nodejs / npm
- git clone https://github.com/kimballfrank/kue-cluster-f.git
- cd kue-cluster-f
- npm install
- redis-server
- node server.js
- node scheduler.js
A nodejs cluster with 4 workers. Each worker is Kue wrapped in Express. The app is listening on port 3600
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.
A barebones job that just logs the job.id and the pid at start and at done.
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