Skip to content

Commit

Permalink
image_sizes_fetch: increase number of consecutive timeouts for blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
rlidwka committed Feb 21, 2018
1 parent ad1bbe8 commit df5df87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/autoload/jobs/image_sizes_fetch.js
Expand Up @@ -186,7 +186,7 @@ module.exports = function (N) {
}

try {
if (domain_stats[domain].errors >= 5 ||
if (domain_stats[domain].errors >= 30 ||
(domain_stats[domain].errors >= 2 && !domain_stats[domain].successes)) {
let e = new Error('Domain blacklisted, too many timeouts');
e.code = 'EBLACKLISTED';
Expand All @@ -205,7 +205,7 @@ module.exports = function (N) {
domain_stats[domain].errors++;
domain_stats[domain].last_error = now;

if (domain_stats[domain].errors >= 5 ||
if (domain_stats[domain].errors >= 30 ||
(domain_stats[domain].errors >= 2 && !domain_stats[domain].successes)) {
let errors = domain_stats[domain].errors;
N.logger.error(`${task_name}: domain ${domain} blacklisted, too many timeouts (${errors})`);
Expand Down

0 comments on commit df5df87

Please sign in to comment.