lykmapipo / kue-scheduler

A job scheduler utility for kue, backed by redis and built for node.js
246 stars 47 forks source link

ReplyError: ERR unknown command 'config' #121

Open sheksushant opened 6 years ago

sheksushant commented 6 years ago

unable to setup redis on heroku server which has auth and password

# try 1 var options = { prefix: 'w', skipConfig: false, redis : keys.redis_url, restore: true };

# try 2

var redisinfo = require('redis-url').parse(keys.redis_url);

var options = { prefix: 'w', skipConfig: false, redis: { host: redisinfo.hostname, port: redisinfo.port, password:redisinfo.password, dropBufferSupport: true, keepAlive: 10000, enableOfflineQueue: false }, redis : keys.redis_url, restore: true };

callmephilip commented 6 years ago

Make sure you are using RedisCloud addon instead of Heroku Redis as it does not seem to support notify-keyspace-events - https://help.heroku.com/5BP0E8RC/how-to-enable-notify-keyspace-events-on-redis