Make Google searches only try stripping strings once

This commit is contained in:
Jonathan Cremin 2017-11-11 20:33:47 +00:00
parent 46142d12de
commit 2c7e4f9dee
4 changed files with 30 additions and 16 deletions

View file

@ -29,9 +29,12 @@ export default function* () {
services.forEach((service) => {
if (service.id !== share.service) {
const job = queue.create('search', { share, service }).save((err) => {
debug(err || job.id);
});
const job = queue.create('search', { share, service })
.attempts(3)
.backoff({ type: 'exponential' })
.save((err) => {
debug(err || `JobID: ${job.id}`);
});
}
});
}