From f3c516adfb82a3aa5322ddab10bd1b63536fafca Mon Sep 17 00:00:00 2001 From: Evan Tahler Date: Thu, 15 Oct 2015 18:37:29 -0700 Subject: [PATCH] more notes --- lib/worker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/worker.js b/lib/worker.js index 94106649..4fb2b89f 100644 --- a/lib/worker.js +++ b/lib/worker.js @@ -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]); }