forked from ddrilling/AsbCloudServer
Фикс бекграфнуд сервиса
This commit is contained in:
parent
d7e9c4f893
commit
e29f21c291
@ -50,7 +50,7 @@ public class WorkOperationDetection : Work
|
|||||||
for (int i = 0; i < idsTelemetry.Length; i++)
|
for (int i = 0; i < idsTelemetry.Length; i++)
|
||||||
{
|
{
|
||||||
var idTelemetry = idsTelemetry[i];
|
var idTelemetry = idsTelemetry[i];
|
||||||
|
|
||||||
if (!telemetriesDateRanges.TryGetValue(idTelemetry, out var telemetryDateRange))
|
if (!telemetriesDateRanges.TryGetValue(idTelemetry, out var telemetryDateRange))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -80,8 +80,6 @@ public class WorkOperationDetection : Work
|
|||||||
var detectedOperations =
|
var detectedOperations =
|
||||||
await detectedOperationService.DetectOperationsAsync(idTelemetry, request, lastDetectedOperation, token);
|
await detectedOperationService.DetectOperationsAsync(idTelemetry, request, lastDetectedOperation, token);
|
||||||
|
|
||||||
await detectedOperationRepository.InsertRangeAsync(detectedOperations.Items, token);
|
|
||||||
|
|
||||||
dateBegin = detectedOperations.LastDate.UtcDateTime;
|
dateBegin = detectedOperations.LastDate.UtcDateTime;
|
||||||
|
|
||||||
CacheOfStartDatesByTelemetryId[idTelemetry] = dateBegin;
|
CacheOfStartDatesByTelemetryId[idTelemetry] = dateBegin;
|
||||||
|
Loading…
Reference in New Issue
Block a user