if (this.options.events.indexOf('failed') > -1) {
      this.queue.on('job failed',
        (id, error) => this.emit('failed', { id, error })
      );
    }