{"action":"created","issue":{"url":"https://api.github.com/repos/taskrabbit/node-resque/issues/161","repository_url":"https://api.github.com/repos/taskrabbit/node-resque","labels_url":"https://api.github.com/repos/taskrabbit/node-resque/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/taskrabbit/node-resque/issues/161/comments","events_url":"https://api.github.com/repos/taskrabbit/node-resque/issues/161/events","html_url":"https://github.com/taskrabbit/node-resque/issues/161","id":178664431,"number":161,"title":"(worker.js) TypeError: callback is not a function","user":{"login":"borisovg","id":3171327,"avatar_url":"https://avatars.githubusercontent.com/u/3171327?v=3","gravatar_id":"","url":"https://api.github.com/users/borisovg","html_url":"https://github.com/borisovg","followers_url":"https://api.github.com/users/borisovg/followers","following_url":"https://api.github.com/users/borisovg/following{/other_user}","gists_url":"https://api.github.com/users/borisovg/gists{/gist_id}","starred_url":"https://api.github.com/users/borisovg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borisovg/subscriptions","organizations_url":"https://api.github.com/users/borisovg/orgs","repos_url":"https://api.github.com/users/borisovg/repos","events_url":"https://api.github.com/users/borisovg/events{/privacy}","received_events_url":"https://api.github.com/users/borisovg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/taskrabbit/node-resque/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/taskrabbit/node-resque/labels/low-priority","name":"low-priority","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-22T16:53:15Z","updated_at":"2016-09-23T17:24:37Z","closed_at":"2016-09-23T16:29:38Z","body":"If I set worker option `looping: false` then I get a crash:\r\n\r\n```\r\n/home/borisov/test/redis/node_modules/node-resque/node_modules/bluebird/js/release/async.js:61\r\n        fn = function () { throw arg; };\r\n                           ^\r\n\r\nTypeError: callback is not a function\r\n    at /home/borisov/test/redis/node_modules/node-resque/lib/worker.js:115:13\r\n    at tryCatcher (/home/borisov/test/redis/node_modules/node-resque/node_modules/bluebird/js/release/util.js:16:23)\r\n    at Promise.successAdapter [as _fulfillmentHandler0] (/home/borisov/test/redis/node_modules/node-resque/node_modules/bluebird/js/release/nodeify.js:23:30)\r\n    at Promise._settlePromise (/home/borisov/test/redis/node_modules/node-resque/node_modules/bluebird/js/release/promise.js:564:21)\r\n    at Promise._settlePromise0 (/home/borisov/test/redis/node_modules/node-resque/node_modules/bluebird/js/release/promise.js:612:10)\r\n    at Promise._settlePromises (/home/borisov/test/redis/node_modules/node-resque/node_modules/bluebird/js/release/promise.js:691:18)\r\n    at Async._drainQueue (/home/borisov/test/redis/node_modules/node-resque/node_modules/bluebird/js/release/async.js:138:16)\r\n    at Async._drainQueues (/home/borisov/test/redis/node_modules/node-resque/node_modules/bluebird/js/release/async.js:148:10)\r\n    at Immediate.Async.drainQueues [as _onImmediate] (/home/borisov/test/redis/node_modules/node-resque/node_modules/bluebird/js/release/async.js:17:14)\r\n    at processImmediate [as _immediateCallback] (timers.js:383:17)\r\n```\r\n\r\nCode is pretty much copy pasted example but let me know if you need it.\r\n\r\nnode-resque version 3.0.4"},"comment":{"url":"https://api.github.com/repos/taskrabbit/node-resque/issues/comments/249252404","html_url":"https://github.com/taskrabbit/node-resque/issues/161#issuecomment-249252404","issue_url":"https://api.github.com/repos/taskrabbit/node-resque/issues/161","id":249252404,"user":{"login":"borisovg","id":3171327,"avatar_url":"https://avatars.githubusercontent.com/u/3171327?v=3","gravatar_id":"","url":"https://api.github.com/users/borisovg","html_url":"https://github.com/borisovg","followers_url":"https://api.github.com/users/borisovg/followers","following_url":"https://api.github.com/users/borisovg/following{/other_user}","gists_url":"https://api.github.com/users/borisovg/gists{/gist_id}","starred_url":"https://api.github.com/users/borisovg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borisovg/subscriptions","organizations_url":"https://api.github.com/users/borisovg/orgs","repos_url":"https://api.github.com/users/borisovg/repos","events_url":"https://api.github.com/users/borisovg/events{/privacy}","received_events_url":"https://api.github.com/users/borisovg/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T17:24:37Z","updated_at":"2016-09-23T17:24:37Z","body":"That is what I wanted - will I need to re-create the worker or can I call `worker.start()` to get the next message?"}}
{"actor":{"display_login":"borisovg"}}