Skip to content

Commit

Permalink
Fix issue 5972 (#6684)
Browse files Browse the repository at this point in the history
  • Loading branch information
karolz-ms authored Nov 15, 2024
1 parent 10e511f commit c0ff16d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Aspire.Hosting/Dcp/ApplicationExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ static ImmutableArray<HealthReportSnapshot> GetInitialHealthReports(IResource re
}

var reports = annotations.Select(annotation => new HealthReportSnapshot(annotation.Key, null, null, null));
return [..reports];
return [.. reports];
}
}

Expand Down Expand Up @@ -2116,7 +2116,8 @@ async Task StartExecutableOrContainerAsync<T>(T resource) where T : CustomResour
BackoffType = DelayBackoffType.Exponential,
Delay = TimeSpan.FromMilliseconds(200),
UseJitter = true,
MaxRetryAttempts = 6, // Cumulative time for all attempts amounts to about 12 seconds
MaxRetryAttempts = 10, // Cumulative time for all attempts amounts to about 15 seconds
MaxDelay = TimeSpan.FromSeconds(3),
ShouldHandle = new PredicateBuilder().Handle<Exception>(),
OnRetry = (retry) =>
{
Expand Down

0 comments on commit c0ff16d

Please sign in to comment.