node-resque
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -42,10 +42,3 @@ ///////////////////////// | ||
myPlugin.prototype.before_enqueue = function(callback){ | ||
callback(null, true); | ||
}; | ||
myPlugin.prototype.after_enqueue = function(callback){ | ||
callback(null, true); | ||
}; | ||
// Learn all the callbacks you can use from the Readme. | ||
myPlugin.prototype.before_perform = function(callback){ | ||
@@ -56,6 +49,2 @@ console.log(this.options.messagePrefix + " | " + JSON.stringify(this.args)); | ||
myPlugin.prototype.after_perform = function(callback){ | ||
callback(null, true); | ||
}; | ||
////////////////////////////// | ||
@@ -124,2 +113,2 @@ // DEFINE YOUR WORKER TASKS // | ||
} | ||
} | ||
}; |
@@ -9,3 +9,3 @@ var runPlugin = function(self, pluginRefrence, type, func, queue, job, args, callback){ | ||
if(typeof pluginRefrence === 'function'){ | ||
pluginName = new pluginRefrence().name; | ||
pluginName = new pluginRefrence(self, func, queue, job, args, {}).name; | ||
} | ||
@@ -12,0 +12,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"license": "Apache-2.0", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"homepage": "http://github.com/taskrabbit/node-resque", | ||
@@ -9,0 +9,0 @@ "repository": { |
508286
3513