feature: Observability: Prometheus Metrics and Grafana
This commit is contained in:
@@ -51,6 +51,12 @@ public sealed class PagingWorkerService : BackgroundService
|
||||
{
|
||||
await HandlePageAsync(channel, ea, stoppingToken);
|
||||
}
|
||||
catch (OperationCanceledException) when (stoppingToken.IsCancellationRequested)
|
||||
{
|
||||
// Host is stopping while we were waiting for ack — requeue so restart does not false-escalate.
|
||||
_logger.LogInformation("PagingWorker stopping — requeueing in-flight page message");
|
||||
channel.BasicNack(ea.DeliveryTag, multiple: false, requeue: true);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogError(ex, "PagingWorker failed — NACKing to DLQ");
|
||||
|
||||
Reference in New Issue
Block a user