fix: do not cancel all operation processing when one of them reach maxRetries, just skip

This commit is contained in:
Sebastian 2022-05-18 14:38:27 -03:00
parent cbf5b9bed2
commit 115e5bf353
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -348,9 +348,9 @@ async function runTaskLoop(
if (maxRetries && p.retryInfo && p.retryInfo.retryCounter > maxRetries) { if (maxRetries && p.retryInfo && p.retryInfo.retryCounter > maxRetries) {
logger.warn( logger.warn(
`stopping, as ${maxRetries} retries are exceeded in an operation of type ${p.type}`, `skipping, as ${maxRetries} retries are exceeded in an operation of type ${p.type}`,
); );
return; continue;
} }
} }