@ -20,15 +20,7 @@ namespace SlnMesnac.Business.Airport
protected async override Task ExecuteAsync(CancellationToken stoppingToken)
{
_airportTaskService.CreateDataBase();
while (!stoppingToken.IsCancellationRequested)
//执行任务
Console.WriteLine($"{DateTime.Now}");
//周期性任务,于上次任务执行完成后,等待5秒,执行下一次任务
await Task.Delay(500);
}
return;
@ -13,7 +13,7 @@ namespace SlnMesnac.Quartz.Job
private readonly ILogger<GetTaskInfo_Job> _logger;
private IAirportTaskService _service;
private BaseTaskInfoBusiness _taskInfoBusiness;
public GetTaskInfo_Job(ILogger<GetTaskInfo_Job> logger, IAirportTaskService service)
_logger = logger;
@ -23,7 +23,7 @@
"configId": "AGV",
"dbType": 2,
"connStr": "Data Source=F:\\Mesnac\\2023部门项目\\机场AGV调度\\HightWay_AirPot_WCS\\SlnMesnac.WPF\\bin\\Debug\\net6.0-windows\\data\\Airport_db.sqlite;"
"connStr": "Data Source=D:\\WorkCode\\AirPortWCS\\SlnMesnac.WPF\\bin\\Debug\\net6.0-windows\\data\\Airport_db.sqlite"
],
"PlcConfig": [