Update (da testare) x salvare task Run/Done

This commit is contained in:
Samuele Locatelli
2026-01-19 15:58:36 +01:00
parent f68a3a291c
commit f58580393d
13 changed files with 198 additions and 130 deletions
+10 -3
View File
@@ -18,14 +18,17 @@ namespace Lux.API.Services
/// </summary>
/// <param name="imgService"></param>
/// <param name="dlService"></param>
public ExternalMessageProcessor(ImageCacheService imgService, DataLayerServices dlService, CalcRuidService crService)
public ExternalMessageProcessor(ImageCacheService imgService, DataLayerServices dlService, CalcRuidService crService, ProdService prodService)
{
cacheService = imgService;
dbService = dlService;
_calcRuidService = crService;
_prodService = prodService;
}
private readonly CalcRuidService _calcRuidService;
private readonly ProdService _prodService;
#endregion Public Constructors
#region Public Methods
@@ -106,7 +109,10 @@ namespace Lux.API.Services
{
RUID = retData.Args["RUID"];
// salvo SUBITO chiusura statistiche...
await _calcRuidService.CompleteRequestAsync(RUID);
string hKey = await _calcRuidService.CompleteRequestAsync(RUID);
// verifico eventuali spostamenti code calcolo
await _prodService.UpdateQueue(hKey);
}
// gestione ritorno preview SVG
@@ -172,7 +178,7 @@ namespace Lux.API.Services
Log.Error($"Eccezione in gestione Estimate{Environment.NewLine}{exc}");
}
// reinvio in redis (cache + channel)
await cacheService.SaveProdEstimationAsync(UID, retData.ExecEnvironment, rawAnsw);
await cacheService.SaveProdEstimateAsync(UID, retData.ExecEnvironment, rawAnsw);
saved = true;
}
@@ -250,6 +256,7 @@ namespace Lux.API.Services
return saved;
}
/// <summary>
/// Salvataggio della risposta in formato RawData x Debug
/// </summary>