Make Google searches only try stripping strings once
This commit is contained in:
parent
46142d12de
commit
2c7e4f9dee
4 changed files with 30 additions and 16 deletions
|
@ -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}`);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue