node-resque
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -19,3 +19,4 @@ ///////////////////////// | ||
// namespace: 'resque', | ||
// looping: true | ||
// looping: true, | ||
// options: {password: 'abc'}, | ||
}; | ||
@@ -22,0 +23,0 @@ |
@@ -19,3 +19,4 @@ ///////////////////////// | ||
// namespace: 'resque', | ||
// looping: true | ||
// looping: true, | ||
// // options: {password: 'abc'}, | ||
}; | ||
@@ -22,0 +23,0 @@ |
@@ -19,3 +19,4 @@ ///////////////////////// | ||
// namespace: 'resque', | ||
// looping: true | ||
// looping: true, | ||
// options: {password: 'abc'}, | ||
}; | ||
@@ -22,0 +23,0 @@ |
@@ -12,5 +12,11 @@ // I am an example of running multiple node-resque workers in a single process, auto-scaling with CPU utilization | ||
// namespace: 'resque', | ||
// looping: true | ||
// looping: true, | ||
// options: {password: 'abc'}, | ||
}; | ||
// OR | ||
// var ioredis = require('ioredis'); | ||
// connectionDetails = { redis: new ioredis() }; | ||
///////////////// | ||
@@ -17,0 +23,0 @@ // DEFINE JOBS // |
@@ -23,3 +23,4 @@ ///////////////////////// | ||
// namespace: 'resque', | ||
// looping: true | ||
// looping: true, | ||
// options: {password: 'abc'}, | ||
}; | ||
@@ -26,0 +27,0 @@ |
@@ -24,3 +24,2 @@ var util = require('util'); | ||
host: '127.0.0.1', | ||
password: null, | ||
port: 6379, | ||
@@ -56,6 +55,2 @@ database: 0, | ||
var handleConnection = function(){ | ||
if(self.options.password && self.options.password !== ''){ | ||
self.redis.auth(self.options.password); | ||
} | ||
if(self.connected === true){ | ||
@@ -62,0 +57,0 @@ // nothing to do here; this is a reconnect |
@@ -17,2 +17,6 @@ var os = require('os'); | ||
if(options.connection.redis && typeof options.connection.redis.setMaxListeners === 'function'){ | ||
options.connection.redis.setMaxListeners(options.maxTaskProcessors + 1); | ||
} | ||
self.workers = []; | ||
@@ -19,0 +23,0 @@ self.options = options; |
@@ -6,3 +6,3 @@ { | ||
"license": "Apache-2.0", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"homepage": "http://github.com/taskrabbit/node-resque", | ||
@@ -9,0 +9,0 @@ "repository": { |
@@ -31,3 +31,4 @@ # node-resque | ||
// namespace: 'resque', | ||
// looping: true | ||
// looping: true, | ||
// options: {password: 'abc'}, | ||
}; | ||
@@ -34,0 +35,0 @@ |
507134
3495
428