Browse Source

fixes docs issue #19072

pull/2061/head
Tarun Jain 1 year ago
parent
commit
4f58e58d46
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/Services/Ordering/Ordering.BackgroundTasks/Services/GracePeriodManagerService.cs

+ 6
- 2
src/Services/Ordering/Ordering.BackgroundTasks/Services/GracePeriodManagerService.cs View File

@ -36,8 +36,12 @@ namespace Ordering.BackgroundTasks.Services
_logger.LogDebug("GracePeriodManagerService background task is doing background work."); _logger.LogDebug("GracePeriodManagerService background task is doing background work.");
CheckConfirmedGracePeriodOrders(); 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."); _logger.LogDebug("GracePeriodManagerService background task is stopping.");


Loading…
Cancel
Save