Skip to content

Commit

Permalink
Cap retries to 8000
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyGaluzo committed Jan 25, 2025
1 parent 39b1898 commit d419578
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ internal async Task<IReadOnlyList<string>> ImportResourcesAsync(IReadOnlyList<Im

int GetMaxRetries(IReadOnlyList<ImportResource> resources, ImportMode importMode)
{
return importMode == ImportMode.IncrementalLoad && resources.Any(_ => _.KeepLastUpdated) ? 80000 / resources.Count : 30; // 80K is id sequence rollover
return importMode == ImportMode.IncrementalLoad && resources.Any(_ => _.KeepLastUpdated) ? Math.Min(8000, 80000 / resources.Count) : 30; // 80K is id sequence rollover
}

List<string> GetErrors(IReadOnlyCollection<ImportResource> dups, IReadOnlyCollection<ImportResource> conflicts)
Expand Down

0 comments on commit d419578

Please sign in to comment.