Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix kue #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ node_modules

# Users Environment Variables
.lock-wscript

# vim temp files
*.swp
5 changes: 4 additions & 1 deletion db/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
/**
Expand All @@ -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 }
});
};


Expand Down