feat(dal, TemplateDistributorWorker): NextRunServiceV2 - реализован метод распределения шаблонов. Обновлен TemplateDistributorWorker для использования новой логики.
This commit is contained in:
@@ -540,7 +540,7 @@ namespace PARR.DAL.NextRunServices.Subservices
|
||||
|
||||
var updatedTemplates = new List<TemplateNextRunResultDto>(templatesToKeep);
|
||||
|
||||
foreach (var template in templatesToReassign)
|
||||
foreach (var template in templatesToReassign.OrderBy(t => t.NextRun))
|
||||
{
|
||||
var nextRunInTargetTz = FindNextAvailableDateWithLoad(currentDailyLoad, workDays, referenceDateInTargetTz, expectedDailyLoad, targetOffset);
|
||||
if (nextRunInTargetTz.HasValue)
|
||||
|
||||
Reference in New Issue
Block a user