diff options
Diffstat (limited to 'VegaData/Program.cs')
| -rw-r--r-- | VegaData/Program.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/VegaData/Program.cs b/VegaData/Program.cs index e6ca86a..3e483f4 100644 --- a/VegaData/Program.cs +++ b/VegaData/Program.cs @@ -51,11 +51,11 @@ class Show class DataWorker(IServiceScopeFactory serviceScopeFactory) : BackgroundService { protected override async Task ExecuteAsync(CancellationToken stoppingToken) { - const int hour = 3600 * 60; + const int interval = 1000 * 60 * 10; while (!stoppingToken.IsCancellationRequested) { try { await Work(stoppingToken); - await Task.Delay(hour, stoppingToken); + await Task.Delay(interval, stoppingToken); } catch (Exception e) { Console.WriteLine(e); } |
