temp: for now, schedule job, some seconds after initialization.

This commit is contained in:
Guillermo Marcel 2025-02-17 18:35:38 -03:00
parent f16ea91e95
commit 7c213faa5f

View File

@ -27,8 +27,8 @@ public class AutoScanApp
{ {
_logger.LogInformation("AutoScanApp is running..."); _logger.LogInformation("AutoScanApp is running...");
var at = DateTime.Now.AddMinutes(1).ToString("HH:mm"); var at = DateTime.Now.AddSeconds(10);
var cron = CronFromAt(at); var cron = $"{at.Second} {at.Minute} {at.Hour} * * ?";
//var cron = CronFromAt(_options.At); //var cron = CronFromAt(_options.At);
_logger.LogInformation("Waiting for next scan at {At} [{cron}].", at, cron); _logger.LogInformation("Waiting for next scan at {At} [{cron}].", at, cron);