We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1327bea commit aa3557aCopy full SHA for aa3557a
src/ServiceControl.Audit/Auditing/AuditIngestion.cs
@@ -76,13 +76,18 @@ async Task EnsureStarted(CancellationToken cancellationToken = default)
76
await startStopSemaphore.WaitAsync(cancellationToken);
77
logger.Debug("Ensure started. Start/stop semaphore acquired");
78
79
- if (!unitOfWorkFactory.CanIngestMore())
+ var canIngest = unitOfWorkFactory.CanIngestMore();
80
+
81
+ logger.DebugFormat("Ensure started {0}", canIngest);
82
83
+ if (canIngest)
84
+ {
85
+ await SetUpAndStartInfrastructure(cancellationToken);
86
+ }
87
+ else
88
{
89
await StopAndTeardownInfrastructure(cancellationToken);
- return;
90
}
-
- await SetUpAndStartInfrastructure(cancellationToken);
91
92
catch (Exception e)
93
0 commit comments