[worker] swollow missing index errors

This commit is contained in:
2016-05-13 14:05:46 -07:00
parent 5d37399fbf
commit c51ea64bdd

View File

@@ -267,6 +267,9 @@ export default class Job extends events.EventEmitter {
return jobs;
})
.catch((err) => {
// ignore missing indices errors
if (err.status === 404) return;
this.debug('job querying failed', err);
this.emit('error', err);
this.queue.emit('worker_error', {