{"action":"created","issue":{"url":"https://api.github.com/repos/LewisJEllis/bee-queue/issues/24","labels_url":"https://api.github.com/repos/LewisJEllis/bee-queue/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/LewisJEllis/bee-queue/issues/24/comments","events_url":"https://api.github.com/repos/LewisJEllis/bee-queue/issues/24/events","html_url":"https://github.com/LewisJEllis/bee-queue/issues/24","id":118752227,"number":24,"title":"Redis Server Crash reconnect error?","user":{"login":"mllongze","id":2328611,"avatar_url":"https://avatars.githubusercontent.com/u/2328611?v=3","gravatar_id":"","url":"https://api.github.com/users/mllongze","html_url":"https://github.com/mllongze","followers_url":"https://api.github.com/users/mllongze/followers","following_url":"https://api.github.com/users/mllongze/following{/other_user}","gists_url":"https://api.github.com/users/mllongze/gists{/gist_id}","starred_url":"https://api.github.com/users/mllongze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mllongze/subscriptions","organizations_url":"https://api.github.com/users/mllongze/orgs","repos_url":"https://api.github.com/users/mllongze/repos","events_url":"https://api.github.com/users/mllongze/events{/privacy}","received_events_url":"https://api.github.com/users/mllongze/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-25T03:24:52Z","updated_at":"2015-11-25T06:15:39Z","closed_at":"2015-11-25T06:14:17Z","body":"Hello @LewisJEllis  :alien:\r\n> <h3>test the code below to my local project </h3>\r\n\r\n```javascript\r\n var job = queue.createJob({name: \"test\"}).save();\r\n        job.on('succeeded', function (result) {\r\n            console.log('Received result for job ' + job.id + ': result : ' + JSON.stringify(result));\r\n        })\r\n        queue.on('error', function (err) {\r\n            console.log(\"queue all error show -- \", err);\r\n        });\r\n        queue.process(function (job, done) {\r\n            //do ... ing\r\n            return done(null, job.data);\r\n        });\r\n```\r\n\r\n>  <h3>stop redis server</h3>\r\n\r\n```javascript\r\nError: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED\r\n```\r\n\r\n> <h3>restart redis server</h3>\r\n\r\n>  <h3>execute code again </h3>\r\n\r\n```javascript\r\n/Users/xxxx/node-project/socket/node_modules/bee-queue/node_modules/redis/index.js:578\r\n                throw callback_err;\r\n                      ^\r\nError: NOSCRIPT No matching script. Please use EVAL.\r\n    at ReplyParser.<anonymous> (/Users/xxxx/node-project/socket/node_modules/bee-queue/node_modules/redis/index.js:320:31)\r\n    at ReplyParser.emit (events.js:107:17)\r\n    at ReplyParser.send_error (/Users/xxx/node-project/socket/node_modules/bee-queue/node_modules/redis/lib/parser/javascript.js:298:10)\r\n    at ReplyParser.execute (/Users/xxxx/node-project/socket/node_modules/bee-queue/node_modules/redis/lib/parser/javascript.js:183:22)\r\n    at RedisClient.on_data (/Users/xxxx/node-project/socket/node_modules/bee-queue/node_modules/redis/index.js:550:27)\r\n    at Socket.<anonymous> (/Users/xxxx/node-project/socket/node_modules/bee-queue/node_modules/redis/index.js:105:14)\r\n    at Socket.emit (events.js:107:17)\r\n    at readableAddChunk (_stream_readable.js:163:16)\r\n    at Socket.Readable.push (_stream_readable.js:126:10)\r\n    at TCP.onread (net.js:538:20)\r\n```"},"comment":{"url":"https://api.github.com/repos/LewisJEllis/bee-queue/issues/comments/159504608","html_url":"https://github.com/LewisJEllis/bee-queue/issues/24#issuecomment-159504608","issue_url":"https://api.github.com/repos/LewisJEllis/bee-queue/issues/24","id":159504608,"user":{"login":"LewisJEllis","id":1445984,"avatar_url":"https://avatars.githubusercontent.com/u/1445984?v=3","gravatar_id":"","url":"https://api.github.com/users/LewisJEllis","html_url":"https://github.com/LewisJEllis","followers_url":"https://api.github.com/users/LewisJEllis/followers","following_url":"https://api.github.com/users/LewisJEllis/following{/other_user}","gists_url":"https://api.github.com/users/LewisJEllis/gists{/gist_id}","starred_url":"https://api.github.com/users/LewisJEllis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LewisJEllis/subscriptions","organizations_url":"https://api.github.com/users/LewisJEllis/orgs","repos_url":"https://api.github.com/users/LewisJEllis/repos","events_url":"https://api.github.com/users/LewisJEllis/events{/privacy}","received_events_url":"https://api.github.com/users/LewisJEllis/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T06:15:39Z","updated_at":"2015-11-25T06:15:39Z","body":"Oh, hmm. I know restarting Redis clears the script cache, which we depend on having populated on bee-queue startup. I suppose if we just clear it on a restart then bee-queue will repopulate the cache."}}