refactor(api): Удалены лишние таблицы связанные со старой логикой получения заданий роботом.
This commit is contained in:
@@ -46,7 +46,6 @@ namespace PARR.DAL.Context
|
||||
public DbSet<Models.Setting> Setting { get; set; }
|
||||
|
||||
public DbSet<RobotHistoryLevel> RobotHistoryLevels { get; set; }
|
||||
public DbSet<RobotTemplateHistory> RobotTemplateHistories { get; set; }
|
||||
|
||||
public DbSet<Robot> Robots { get; set; }
|
||||
public DbSet<RobotConfiguration> RobotConfigurations { get; set; }
|
||||
|
||||
1950
PARR.DAL/Migrations/20231006042130_TblTemplatesUpdate.Designer.cs
generated
Normal file
1950
PARR.DAL/Migrations/20231006042130_TblTemplatesUpdate.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
135
PARR.DAL/Migrations/20231006042130_TblTemplatesUpdate.cs
Normal file
135
PARR.DAL/Migrations/20231006042130_TblTemplatesUpdate.cs
Normal file
@@ -0,0 +1,135 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class TblTemplatesUpdate : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_Templates_TaskStatuses_StatusCode",
|
||||
table: "Templates");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "RobotTemplateHistories");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "RobotAttemptsNumber",
|
||||
table: "Templates");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "RobotLastStatusUpdated",
|
||||
table: "Templates");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "StatusCode",
|
||||
table: "Templates",
|
||||
newName: "TaskStatusCode");
|
||||
|
||||
migrationBuilder.RenameIndex(
|
||||
name: "IX_Templates_StatusCode",
|
||||
table: "Templates",
|
||||
newName: "IX_Templates_TaskStatusCode");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_Templates_TaskStatuses_TaskStatusCode",
|
||||
table: "Templates",
|
||||
column: "TaskStatusCode",
|
||||
principalTable: "TaskStatuses",
|
||||
principalColumn: "Code");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_Templates_TaskStatuses_TaskStatusCode",
|
||||
table: "Templates");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "TaskStatusCode",
|
||||
table: "Templates",
|
||||
newName: "StatusCode");
|
||||
|
||||
migrationBuilder.RenameIndex(
|
||||
name: "IX_Templates_TaskStatusCode",
|
||||
table: "Templates",
|
||||
newName: "IX_Templates_StatusCode");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "RobotAttemptsNumber",
|
||||
table: "Templates",
|
||||
type: "integer",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<DateTimeOffset>(
|
||||
name: "RobotLastStatusUpdated",
|
||||
table: "Templates",
|
||||
type: "timestamp with time zone",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "RobotTemplateHistories",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
HistoryLevel = table.Column<int>(type: "integer", nullable: false),
|
||||
TemplateId = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
TemplateStatusCode = table.Column<int>(type: "integer", nullable: false),
|
||||
DateCreated = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
|
||||
EsppMessage = table.Column<string>(type: "text", nullable: true),
|
||||
IdSeries = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
RobotMessage = table.Column<string>(type: "text", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_RobotTemplateHistories", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_RobotTemplateHistories_RobotHistoryLevels_HistoryLevel",
|
||||
column: x => x.HistoryLevel,
|
||||
principalTable: "RobotHistoryLevels",
|
||||
principalColumn: "Level",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_RobotTemplateHistories_TaskStatuses_TemplateStatusCode",
|
||||
column: x => x.TemplateStatusCode,
|
||||
principalTable: "TaskStatuses",
|
||||
principalColumn: "Code",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_RobotTemplateHistories_Templates_TemplateId",
|
||||
column: x => x.TemplateId,
|
||||
principalTable: "Templates",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_RobotTemplateHistories_HistoryLevel",
|
||||
table: "RobotTemplateHistories",
|
||||
column: "HistoryLevel");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_RobotTemplateHistories_TemplateId",
|
||||
table: "RobotTemplateHistories",
|
||||
column: "TemplateId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_RobotTemplateHistories_TemplateStatusCode",
|
||||
table: "RobotTemplateHistories",
|
||||
column: "TemplateStatusCode");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_Templates_TaskStatuses_StatusCode",
|
||||
table: "Templates",
|
||||
column: "StatusCode",
|
||||
principalTable: "TaskStatuses",
|
||||
principalColumn: "Code");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -946,44 +946,6 @@ namespace PARR.DAL.Migrations
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.RobotTemplateHistory", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<DateTimeOffset>("DateCreated")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("EsppMessage")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("HistoryLevel")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<Guid>("IdSeries")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("RobotMessage")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<Guid>("TemplateId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<int>("TemplateStatusCode")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("HistoryLevel");
|
||||
|
||||
b.HasIndex("TemplateId");
|
||||
|
||||
b.HasIndex("TemplateStatusCode");
|
||||
|
||||
b.ToTable("RobotTemplateHistories");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.Setting", b =>
|
||||
{
|
||||
b.Property<string>("Name")
|
||||
@@ -1138,16 +1100,10 @@ namespace PARR.DAL.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int?>("RobotAttemptsNumber")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTimeOffset?>("RobotLastStatusUpdated")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<int?>("RobotStatusCode")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("StatusCode")
|
||||
b.Property<int?>("TaskStatusCode")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
@@ -1161,7 +1117,7 @@ namespace PARR.DAL.Migrations
|
||||
|
||||
b.HasIndex("RobotStatusCode");
|
||||
|
||||
b.HasIndex("StatusCode");
|
||||
b.HasIndex("TaskStatusCode");
|
||||
|
||||
b.ToTable("Templates");
|
||||
});
|
||||
@@ -1701,33 +1657,6 @@ namespace PARR.DAL.Migrations
|
||||
b.Navigation("StatusTask");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.RobotTemplateHistory", b =>
|
||||
{
|
||||
b.HasOne("PARR.DAL.Models.RobotHistoryLevel", "RobotHistoryLevel")
|
||||
.WithMany("robotTemplateHistories")
|
||||
.HasForeignKey("HistoryLevel")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("PARR.DAL.Models.Template", "Template")
|
||||
.WithMany("RobotTemplateHistories")
|
||||
.HasForeignKey("TemplateId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("PARR.DAL.Models.TaskStatus", "StatusTemplate")
|
||||
.WithMany("RobotTemplateHistories")
|
||||
.HasForeignKey("TemplateStatusCode")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("RobotHistoryLevel");
|
||||
|
||||
b.Navigation("StatusTemplate");
|
||||
|
||||
b.Navigation("Template");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.Subprocess", b =>
|
||||
{
|
||||
b.HasOne("PARR.DAL.Models.Process", "Process")
|
||||
@@ -1753,21 +1682,17 @@ namespace PARR.DAL.Migrations
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("PARR.DAL.Models.RobotStatus", "RobotStatus")
|
||||
b.HasOne("PARR.DAL.Models.RobotStatus", null)
|
||||
.WithMany("Templates")
|
||||
.HasForeignKey("RobotStatusCode");
|
||||
|
||||
b.HasOne("PARR.DAL.Models.TaskStatus", "StatusTask")
|
||||
b.HasOne("PARR.DAL.Models.TaskStatus", null)
|
||||
.WithMany("Templates")
|
||||
.HasForeignKey("StatusCode");
|
||||
.HasForeignKey("TaskStatusCode");
|
||||
|
||||
b.Navigation("ApplicationsInWork");
|
||||
|
||||
b.Navigation("Host");
|
||||
|
||||
b.Navigation("RobotStatus");
|
||||
|
||||
b.Navigation("StatusTask");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.Tnk", b =>
|
||||
@@ -1943,8 +1868,6 @@ namespace PARR.DAL.Migrations
|
||||
modelBuilder.Entity("PARR.DAL.Models.RobotHistoryLevel", b =>
|
||||
{
|
||||
b.Navigation("RobotHistories");
|
||||
|
||||
b.Navigation("robotTemplateHistories");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.RobotStatus", b =>
|
||||
@@ -1959,16 +1882,12 @@ namespace PARR.DAL.Migrations
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.TaskStatus", b =>
|
||||
{
|
||||
b.Navigation("RobotTemplateHistories");
|
||||
|
||||
b.Navigation("Templates");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.Template", b =>
|
||||
{
|
||||
b.Navigation("RobotConfigurations");
|
||||
|
||||
b.Navigation("RobotTemplateHistories");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.Tnk", b =>
|
||||
|
||||
@@ -17,8 +17,6 @@ namespace PARR.DAL.Models
|
||||
public required string Description { get; set; }
|
||||
|
||||
|
||||
public ICollection<RobotTemplateHistory> robotTemplateHistories { get; set; } = new HashSet<RobotTemplateHistory>();
|
||||
|
||||
public ICollection<RobotHistory> RobotHistories { get; set; } = new HashSet<RobotHistory>();
|
||||
|
||||
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
using PARR.DAL.Models.Base;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace PARR.DAL.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// История работы робота по управлению шаблонами в ЕСПП
|
||||
/// </summary>
|
||||
[Table("RobotTemplateHistories")]
|
||||
public class RobotTemplateHistory : IBase
|
||||
{
|
||||
[Key]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public DateTimeOffset DateCreated { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public DateTimeOffset? DateModified { get; set; }
|
||||
|
||||
public int HistoryLevel { get; set; }
|
||||
|
||||
public string? RobotMessage { get; set; }
|
||||
|
||||
public string? EsppMessage { get; set; }
|
||||
|
||||
public Guid TemplateId { get; set; }
|
||||
|
||||
public int TemplateStatusCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Уникальный идентификатор серии выполнения, нужен для сопоставления истории
|
||||
/// </summary>
|
||||
public Guid IdSeries { get; set; }
|
||||
|
||||
|
||||
[ForeignKey(nameof(HistoryLevel))]
|
||||
public RobotHistoryLevel? RobotHistoryLevel { get; set; }
|
||||
|
||||
[ForeignKey(nameof(TemplateId))]
|
||||
public Template? Template { get; set; }
|
||||
|
||||
[ForeignKey(nameof(TemplateStatusCode))]
|
||||
public TaskStatus? StatusTemplate { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,5 @@ namespace PARR.DAL.Models
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
public ICollection<Template> Templates { get; set; } = new HashSet<Template>();
|
||||
|
||||
public ICollection<RobotTemplateHistory> RobotTemplateHistories { get; set; } = new HashSet<RobotTemplateHistory>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,31 +27,31 @@ namespace PARR.DAL.Models
|
||||
/// <summary>
|
||||
/// Статус шаблона. Что нужно сделать роботу в ЕСПП
|
||||
/// </summary>
|
||||
public int? StatusCode { get; set; }
|
||||
//public int? StatusCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Статус работы робота
|
||||
/// </summary>
|
||||
public int? RobotStatusCode { get; set; }
|
||||
//public int? RobotStatusCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Количество попыток выполнения задания роботом
|
||||
/// </summary>
|
||||
public int? RobotAttemptsNumber { get; set; }
|
||||
//public int? RobotAttemptsNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Последняя дата обновления статуса RobotStatusCode роботом
|
||||
/// </summary>
|
||||
public DateTimeOffset? RobotLastStatusUpdated { get; set; }
|
||||
//public DateTimeOffset? RobotLastStatusUpdated { get; set; }
|
||||
|
||||
|
||||
[ForeignKey(nameof(StatusCode))]
|
||||
public TaskStatus? StatusTask { get; set; }
|
||||
//[ForeignKey(nameof(StatusCode))]
|
||||
//public TaskStatus? StatusTask { get; set; }
|
||||
|
||||
[ForeignKey(nameof(RobotStatusCode))]
|
||||
public RobotStatus? RobotStatus { get; set; }
|
||||
//[ForeignKey(nameof(RobotStatusCode))]
|
||||
//public RobotStatus? RobotStatus { get; set; }
|
||||
|
||||
public ICollection<RobotTemplateHistory> RobotTemplateHistories { get; set; } = new HashSet<RobotTemplateHistory>();
|
||||
//public ICollection<RobotTemplateHistory> RobotTemplateHistories { get; set; } = new HashSet<RobotTemplateHistory>();
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -49,7 +49,6 @@ namespace PARR.DAL
|
||||
services.AddTransient<IStatusTemplateService, StatusTemplateService>();
|
||||
services.AddTransient<IRobotHistoryLevelService, RobotHistoryLevelService>();
|
||||
services.AddTransient<IRobotStatusService, RobotStatusService>();
|
||||
services.AddTransient<IRobotTemplateHistoryService, RobotTemplateHistoryService>();
|
||||
services.AddTransient<IRobotService, RobotService>();
|
||||
services.AddTransient<IRobotConfigurationService, RobotConfigurationService>();
|
||||
services.AddTransient<IRobotHistoryService, RobotHistoryService>();
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using PARR.DAL.Context;
|
||||
using PARR.DAL.Models;
|
||||
using PARR.DAL.Services.Abstracts;
|
||||
using PARR.DAL.Services.Interfaces;
|
||||
|
||||
namespace PARR.DAL.Services.Implementations
|
||||
{
|
||||
internal class RobotTemplateHistoryService : BaseService<RobotTemplateHistory>, IRobotTemplateHistoryService
|
||||
{
|
||||
private readonly DataContext dataContext;
|
||||
|
||||
public RobotTemplateHistoryService(DataContext dataContext, ILogger<RobotTemplateHistoryService> logger) : base(logger)
|
||||
{
|
||||
this.dataContext = dataContext;
|
||||
}
|
||||
|
||||
protected override DbSet<RobotTemplateHistory> EntitySet => dataContext.RobotTemplateHistories;
|
||||
|
||||
protected override DataContext EntitiContext => dataContext;
|
||||
}
|
||||
}
|
||||
@@ -35,7 +35,6 @@ namespace PARR.DAL.Services.Implementations
|
||||
.ThenInclude(t => t!.ResponseArea)
|
||||
.Include(h => h.Host)
|
||||
.ThenInclude(t => t!.EkStatus)
|
||||
.Include(r => r.RobotStatus)
|
||||
.Include(a => a.ApplicationsInWork)
|
||||
.ThenInclude(w => w!.Work)
|
||||
.ThenInclude(t => t!.Tnk)
|
||||
@@ -43,65 +42,6 @@ namespace PARR.DAL.Services.Implementations
|
||||
.ThenInclude(p => p!.Process);
|
||||
}
|
||||
|
||||
//TODO: удалить этот метод
|
||||
#region delete
|
||||
public async Task CheckAndSetErrorRobotStatusAsync(int robotAttemptsNumber, TimeSpan robotWaitTime)
|
||||
{
|
||||
//Ищем `RobotStatusCode` = 22 и `RobotLastStatusUpdated` истекло и `RobotAttemptsNumber` >= допустимого значения из настроек,
|
||||
//ставим всем этим записям `RobotStatusCode`= 33
|
||||
|
||||
var endDate = DateTimeOffset.UtcNow.Add(-robotWaitTime);
|
||||
|
||||
var templates = await EntitySet.Where(t =>
|
||||
t.RobotStatusCode == (int)RobotStatusEnum.InProgress
|
||||
&& t.RobotAttemptsNumber >= robotAttemptsNumber
|
||||
&& t.RobotLastStatusUpdated <= endDate
|
||||
)
|
||||
.ToListAsync();
|
||||
|
||||
if (!templates.Any())
|
||||
return;
|
||||
|
||||
foreach (var template in templates)
|
||||
{
|
||||
template.RobotStatusCode = (int)RobotStatusEnum.Error;
|
||||
template.DateModified = DateTimeOffset.UtcNow;
|
||||
logger.LogInformation($"Устанавливаю RobotStatus: {RobotStatusEnum.Error} для шаблона {template.Name}");
|
||||
}
|
||||
|
||||
|
||||
var result = await CommitAsync();
|
||||
|
||||
if (!result)
|
||||
logger.LogError($"Ошибка при сохранении изменений RobotStatus у шаблонов на {RobotStatusEnum.Error}");
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
public void ChangeRobotStatus(RobotStatusEnum status, ref Template template)
|
||||
{
|
||||
template.RobotStatusCode = (int)status;
|
||||
|
||||
switch (status)
|
||||
{
|
||||
case RobotStatusEnum.InProgress:
|
||||
template.RobotAttemptsNumber++;
|
||||
template.RobotLastStatusUpdated = DateTimeOffset.UtcNow;
|
||||
break;
|
||||
//case RobotStatusEnum.Error:
|
||||
// break;
|
||||
case RobotStatusEnum.Complete:
|
||||
template.RobotLastStatusUpdated = DateTimeOffset.UtcNow;
|
||||
break;
|
||||
case RobotStatusEnum.Wait:
|
||||
template.RobotLastStatusUpdated = null;
|
||||
template.RobotAttemptsNumber = 0;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public override Task<bool> CreateAsync(Template obj)
|
||||
{
|
||||
// добавление роботов для шаблона
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
using PARR.DAL.Models;
|
||||
using PARR.DAL.Services.Interfaces.Base;
|
||||
|
||||
namespace PARR.DAL.Services.Interfaces
|
||||
{
|
||||
public interface IRobotTemplateHistoryService : IBaseService<RobotTemplateHistory>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -6,21 +6,6 @@ namespace PARR.DAL.Services.Interfaces
|
||||
{
|
||||
public interface ITemplateService : IBaseService<Template>
|
||||
{
|
||||
/// <summary>
|
||||
/// Изменение статуса отработки робота (без коммита)
|
||||
/// </summary>
|
||||
/// <param name="status"></param>
|
||||
/// <param name="template"></param>
|
||||
void ChangeRobotStatus(RobotStatusEnum status, ref Template template);
|
||||
|
||||
/// <summary>
|
||||
/// Поиск шаблонов с просроченным временем выполнения роботом и превышенным кол-вом попыток. Установка им ошибочного статуса
|
||||
/// </summary>
|
||||
/// <param name="robotAttemptsNumber">Максимальное кол-во ошибок</param>
|
||||
/// <param name="robotWaitTime">Максимальное время выполнения</param>
|
||||
/// <returns></returns>
|
||||
Task CheckAndSetErrorRobotStatusAsync(int robotAttemptsNumber, TimeSpan robotWaitTime);
|
||||
|
||||
Task<Template?> GetTemplateByNameAsync(string name);
|
||||
|
||||
IQueryable<Template> GetWithIncludes();
|
||||
|
||||
Reference in New Issue
Block a user