temp: for now, schedule job, some seconds after initialization.
This commit is contained in:
parent
f16ea91e95
commit
7c213faa5f
@ -27,8 +27,8 @@ public class AutoScanApp
|
||||
{
|
||||
_logger.LogInformation("AutoScanApp is running...");
|
||||
|
||||
var at = DateTime.Now.AddMinutes(1).ToString("HH:mm");
|
||||
var cron = CronFromAt(at);
|
||||
var at = DateTime.Now.AddSeconds(10);
|
||||
var cron = $"{at.Second} {at.Minute} {at.Hour} * * ?";
|
||||
//var cron = CronFromAt(_options.At);
|
||||
_logger.LogInformation("Waiting for next scan at {At} [{cron}].", at, cron);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user