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 b8636a7 commit 79c6bf7Copy full SHA for 79c6bf7
src/Infrastructure/BotSharp.Core.Crontab/Services/CrontabWatcher.cs
@@ -31,14 +31,11 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken)
31
32
while (!stoppingToken.IsCancellationRequested)
33
{
34
- var delay = Task.Delay(1000, stoppingToken);
35
-
36
await locker.LockAsync(DIST_KEY, async () =>
37
38
await RunCronChecker(scope.ServiceProvider);
+ await Task.Delay(1000, stoppingToken);
39
});
40
41
- await delay;
42
}
43
44
_logger.LogWarning("Crontab Watcher background service is stopped.");
0 commit comments