Skip to content

Commit

Permalink
worker.performInline needs result and error passed to worker for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
evantahler committed Jul 18, 2016
1 parent 65ef88d commit e504a48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ worker.prototype.performInline = function(func, args, callback){
if(toRun === false){ return callback(); }

var combinedInputs = [].slice.call(args).concat([function(err, result){
self.result = result;
self.error = err;
returnCounter++;
if(err){ return callback(err); }
if(returnCounter !== 2){ return callback(callbackError); }
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "node-resque",
"description": "an opinionated implementation of resque in node",
"license": "Apache-2.0",
"version": "2.1.0",
"version": "2.1.1",
"homepage": "http://github.com/taskrabbit/node-resque",
"repository": {
"type": "git",
Expand Down

0 comments on commit e504a48

Please sign in to comment.