don't emit on the queue instance

This commit is contained in:
2016-06-27 14:04:33 -07:00
parent 5d5552c548
commit 638c896e37

View File

@@ -270,12 +270,6 @@ export default class Job extends events.EventEmitter {
this.debug('job querying failed', err);
this.emit('error', err);
this.queue.emit('worker_error', {
id: this.id,
type: this.type,
err
});
throw err;
});
}
}