feat(api): jobGroup - управление автораспределением

This commit is contained in:
Mikhail Trubnikov
2026-01-23 16:18:56 +10:00
parent 9964e3388d
commit 21c957c3ca
13 changed files with 223 additions and 40 deletions

View File

@@ -6,12 +6,12 @@ namespace PARR.Test.NextRun
{
internal class NextRunTest
{
private readonly ITemplateDistributor templateDistributor;
//private readonly ITemplateDistributor templateDistributor;
private readonly INextRunService nextRunService;
public NextRunTest(ITemplateDistributor templateDistributor, INextRunService nextRunService)
public NextRunTest(/*ITemplateDistributor templateDistributor,*/ INextRunService nextRunService)
{
this.templateDistributor = templateDistributor;
//this.templateDistributor = templateDistributor;
this.nextRunService = nextRunService;
}
@@ -51,7 +51,7 @@ namespace PARR.Test.NextRun
NextRun: null
);
var template = await templateDistributor.GetValidNextRunForTemplateAsync(GetDateStart(), periodDays, referenceDate, targetTemplate, new List<TemplateNextRunDto>(), excludeWeekends, isNew);
//var template = await templateDistributor.GetValidNextRunForTemplateAsync(GetDateStart(), periodDays, referenceDate, targetTemplate, new List<TemplateNextRunDto>(), excludeWeekends, isNew);
}
@@ -63,7 +63,7 @@ namespace PARR.Test.NextRun
// исключать выходные и праздники
var excludeWeekends = true;
var templates = await templateDistributor.DistributeTemplatesAsync(GetDateStart(), periodDays, referenceDate, GetTemplates(), excludeWeekends);
// var templates = await templateDistributor.DistributeTemplatesAsync(GetDateStart(), periodDays, referenceDate, GetTemplates(), excludeWeekends);
//await GetValidNextRunForTemplateAsync(templates);
}