Przeglądaj źródła

Fix loops when configuration items are abnormal or unreachable. #444

master
Savorboard 5 lat temu
rodzic
commit
6583c9aff3
1 zmienionych plików z 3 dodań i 2 usunięć
  1. +3
    -2
      src/DotNetCore.CAP/Processor/IProcessor.InfiniteRetry.cs

+ 3
- 2
src/DotNetCore.CAP/Processor/IProcessor.InfiniteRetry.cs Wyświetl plik

@@ -30,11 +30,12 @@ namespace DotNetCore.CAP.Processor
}
catch (OperationCanceledException)
{
//ignore
//ignore
}
catch (Exception ex)
{
_logger.LogWarning(1, ex, "Processor '{ProcessorName}' failed. Retrying...", _inner.ToString());
_logger.LogWarning(ex, "Processor '{ProcessorName}' failed. Retrying...", _inner.ToString());
await context.WaitAsync(TimeSpan.FromSeconds(2));
}
}
}


Ładowanie…
Anuluj
Zapisz