fixes docs issue #19072

This commit is contained in:
Tarun Jain 2023-03-02 18:09:34 +05:30
parent 286971e60c
commit 4f58e58d46

View File

@ -36,8 +36,12 @@ namespace Ordering.BackgroundTasks.Services
_logger.LogDebug("GracePeriodManagerService background task is doing background work.");
CheckConfirmedGracePeriodOrders();
await Task.Delay(_settings.CheckUpdateTime, stoppingToken);
try {
await Task.Delay(_settings.CheckUpdateTime, stoppingToken);
}
catch (TaskCanceledException exception) {
_logger.LogCritical(exception, "TaskCanceledException Error", exception.Message);
}
}
_logger.LogDebug("GracePeriodManagerService background task is stopping.");