From 330324c52bf324d06059c660493cb7efdb3edf72 Mon Sep 17 00:00:00 2001
From: ngfrolov <ng.frolov@autodrilling.ru>
Date: Thu, 14 Dec 2023 16:32:24 +0500
Subject: [PATCH] =?UTF-8?q?WorkOperationDetection=20=D1=83=D0=B2=D0=B5?=
 =?UTF-8?q?=D0=BB=D0=B8=D1=87=D0=B8=D0=BB=20timeout=20=D0=B7=D0=B0=D0=BF?=
 =?UTF-8?q?=D1=80=D0=BE=D1=81=D0=B0=20=D0=BA=20=D0=91=D0=94?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../Services/DetectOperations/WorkOperationDetection.cs         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/AsbCloudInfrastructure/Services/DetectOperations/WorkOperationDetection.cs b/AsbCloudInfrastructure/Services/DetectOperations/WorkOperationDetection.cs
index 84e34f4c..2dc09b02 100644
--- a/AsbCloudInfrastructure/Services/DetectOperations/WorkOperationDetection.cs
+++ b/AsbCloudInfrastructure/Services/DetectOperations/WorkOperationDetection.cs
@@ -43,7 +43,7 @@ public class WorkOperationDetection: Work
     protected override async Task Action(string id, IServiceProvider services, Action<string, double?> onProgressCallback, CancellationToken token)
     {
         using var db = services.GetRequiredService<IAsbCloudDbContext>();
-
+        db.Database.SetCommandTimeout(TimeSpan.FromMinutes(5));
         var lastDetectedDates = await db.DetectedOperations
             .GroupBy(o => o.IdTelemetry)
             .Select(g => new