feat(api): Выдача заданий агенту.

This commit is contained in:
Mikhail Trubnikov
2023-10-17 16:59:53 +10:00
parent 26bd0a9a6b
commit a1f19c7ac8
12 changed files with 3126 additions and 2 deletions

View File

@@ -138,7 +138,9 @@ namespace PARR.API.Controllers.V1
// передаем LastRun, если его нет, то NextRun
var nextRun = await esppScheduleTransformService.GetNextDateAsync(task.Template!.ApplicationInWorkId, task.Template.ApplicationsInWork!.LastRun ?? task.Template.ApplicationsInWork.NextRun);
appInWorks.LastRun = appInWorks.NextRun;
if (appInWorks.LastRun != null)
appInWorks.LastRun = appInWorks.NextRun;
appInWorks.NextRun = nextRun;
await robotConfigurationService.CommitAsync();