Browse Source

Merge pull request #2061 from erjain/fix/docs#19072

fixes docs issue #19072
pull/2066/head
James Montemagno 1 year ago
committed by GitHub
parent
commit
fed2b179eb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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.");
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.");


Loading…
Cancel
Save