Commit 6583c9af authored by Savorboard's avatar Savorboard

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

parent 5dcb72a4
...@@ -34,7 +34,8 @@ namespace DotNetCore.CAP.Processor ...@@ -34,7 +34,8 @@ namespace DotNetCore.CAP.Processor
} }
catch (Exception ex) 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));
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment