From bd68630c310c3debb1bcf17676c0d73892b3b310 Mon Sep 17 00:00:00 2001 From: William Budington Date: Sun, 27 Sep 2015 17:30:12 -0700 Subject: [PATCH 1/2] Gitignoring vim temp files --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 3cca3dc..c2ecd47 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,6 @@ node_modules # Users Environment Variables .lock-wscript + +# vim temp files +*.swp From dbd028e60b8ff7871c81605667feba0972803a13 Mon Sep 17 00:00:00 2001 From: William Budington Date: Sun, 27 Sep 2015 18:14:09 -0700 Subject: [PATCH 2/2] Fix: kue should use redis config options --- db/adapter.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/db/adapter.js b/db/adapter.js index 45a5a60..5efce20 100644 --- a/db/adapter.js +++ b/db/adapter.js @@ -26,6 +26,7 @@ var RedisAdapter = function() { hostname = redisConfig.get('URL'); } + // TODO(leah): per https://github.com/mranney/node_redis/issues/226 connection pooling shouldn't // be necessary for our use case, so manage a single conn instance. /** @@ -39,7 +40,9 @@ var RedisAdapter = function() { * The Kue job queue used to send tasks to the daemon. * @type {Queue} */ - this.jobQueue = kue.createQueue(); + this.jobQueue = kue.createQueue({ + redis: { port: port, host: hostname } + }); };