fix: do up No audit of document access in vigilcare-records-gap-analysis.md
This commit is contained in:
@@ -136,6 +136,8 @@ public class PromotionRetryService : BackgroundService
|
||||
await promotionService.PromoteAsync(batchId, approverUserId);
|
||||
|
||||
// --- Success path ---
|
||||
DiagnosticsMetrics.PromotionRetryTotal.WithLabels("success").Inc();
|
||||
|
||||
var successAttempt = new PromotionAttempt
|
||||
{
|
||||
Id = Guid.NewGuid(),
|
||||
@@ -190,6 +192,7 @@ public class PromotionRetryService : BackgroundService
|
||||
if (nextAttemptNumber < _options.MaxRetryAttempts)
|
||||
{
|
||||
nextRetryAt = DateTimeOffset.UtcNow.Add(delay);
|
||||
DiagnosticsMetrics.PromotionRetryTotal.WithLabels("failure").Inc();
|
||||
|
||||
_logger.LogInformation(
|
||||
"Scheduling retry for batch {BatchId} at {NextRetryAt} " +
|
||||
@@ -199,7 +202,8 @@ public class PromotionRetryService : BackgroundService
|
||||
}
|
||||
else
|
||||
{
|
||||
// Exhausted all retries — manual intervention required
|
||||
DiagnosticsMetrics.PromotionRetryTotal.WithLabels("exhausted").Inc();
|
||||
|
||||
_logger.LogCritical(
|
||||
"Batch {BatchId} has exhausted all {Max} retry attempts. " +
|
||||
"Manual intervention required. Last error: {Error}",
|
||||
|
||||
Reference in New Issue
Block a user