Skip to content

Commit c39d01f

Browse files
committed
LearningTransport: Delay QueueProvider while loop when there is an error to prevent massive log write when queues/folders are not yet fully initialized
1 parent 60d82ce commit c39d01f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ServiceControl.Transports.Learning/QueueLengthProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken)
3939
}
4040
catch (Exception ex)
4141
{
42+
await Task.Delay(5000, stoppingToken);
4243
logger.LogWarning(ex, "Problem getting learning transport queue length");
4344
}
4445
}

0 commit comments

Comments
 (0)