cause worker emitter to emit on the queue instance

This commit is contained in:
2016-07-08 18:34:45 -07:00
parent 057bd26b74
commit d16d3ea4dd

View File

@@ -52,6 +52,11 @@ export default class Job extends events.EventEmitter {
};
}
emit(name, ...args) {
super.emit(name, ...args);
this.queue.emit(name, ...args);
}
_formatErrorParams(err, job) {
const response = {
error: err,