save checkpoint
This commit is contained in:
@@ -370,7 +370,7 @@ public sealed class BaselineTracker
|
||||
P95Delta = p95Delta,
|
||||
P95PercentChange = p95PercentChange,
|
||||
ZScore = zScore,
|
||||
IsSignificant = Math.Abs(zScore) > _config.SignificanceThreshold
|
||||
IsSignificant = Math.Abs(zScore) >= _config.SignificanceThreshold
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ public sealed class DataPrefetcher : BackgroundService
|
||||
IReadOnlyList<Guid> gateIds,
|
||||
CancellationToken ct = default)
|
||||
{
|
||||
var startTime = _timeProvider.GetUtcNow();
|
||||
var stopwatch = System.Diagnostics.Stopwatch.StartNew();
|
||||
var prefetchedItems = new List<PrefetchedItem>();
|
||||
|
||||
_logger.LogInformation(
|
||||
@@ -128,7 +128,8 @@ public sealed class DataPrefetcher : BackgroundService
|
||||
var predictedData = await PrefetchPredictedDataAsync(promotionId, gateIds, ct);
|
||||
prefetchedItems.AddRange(predictedData);
|
||||
|
||||
var duration = _timeProvider.GetUtcNow() - startTime;
|
||||
stopwatch.Stop();
|
||||
var duration = stopwatch.Elapsed;
|
||||
|
||||
_logger.LogInformation(
|
||||
"Prefetched {Count} items for promotion {PromotionId} in {Duration}ms",
|
||||
|
||||
@@ -230,7 +230,7 @@ public sealed class ConnectionPoolManagerTests
|
||||
cts.Cancel();
|
||||
|
||||
// Act & Assert
|
||||
await Assert.ThrowsAsync<OperationCanceledException>(async () =>
|
||||
await Assert.ThrowsAnyAsync<OperationCanceledException>(async () =>
|
||||
{
|
||||
await manager.AcquireAsync(endpoint, ConnectionType.Registry, cts.Token);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user