Update display avanzamento freeze day

This commit is contained in:
Samuele Locatelli
2025-04-08 18:55:57 +02:00
parent a95447e355
commit 8a94f6ed2d
4 changed files with 42 additions and 41 deletions
+5 -3
View File
@@ -1195,14 +1195,16 @@ namespace MP.Data.Services
public async Task<bool> InsManFreezeDay(string idxMacchina, DateTime dtCurr)
{
bool fatto = false;
Stopwatch sw = new Stopwatch();
sw.Start();
Log.Info($"Inizio InsManFreezeDay | idxMacchina: {idxMacchina}");
// salvo
fatto = dbTabController.InsManFreezeDay(idxMacchina, dtCurr);
Log.Info($"Fine stored | idxMacchina: {idxMacchina}");
fatto = await dbTabController.InsManFreezeDay(idxMacchina, dtCurr);
// svuoto cache
RedisValue pattern = $"{redisBaseKey}:InsMan:*";
await ExecFlushRedisPatternAsync(pattern);
Log.Info($"Fine InsManFreezeDay | idxMacchina: {idxMacchina}");
sw.Stop();
Log.Info($"Fine InsManFreezeDay | idxMacchina: {idxMacchina} | elapsed: {sw.Elapsed.TotalMilliseconds:N2} ms");
return fatto;
}