Skip to content

Commit

Permalink
more notes
Browse files Browse the repository at this point in the history
  • Loading branch information
evantahler committed Oct 16, 2015
1 parent 3720771 commit f3c516a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ worker.prototype.perform = function(job, callback) {
}
}]);

// When returning the payload back to redis (on error), it is important to make it immutable
// When returning the payload back to redis (on error), it is important that the orignal payload is preserved
// To help with this, we can stry to make the inputs to the job immutible
// https://github.com/taskrabbit/node-resque/issues/99
// Note: if an input is a string or a number, you CANNOT freeze it saddly.
for(var i in combinedInputs){ Object.freeze(combinedInputs[i]); }
Expand Down

0 comments on commit f3c516a

Please sign in to comment.