- gestione errori su dati d'ingresso
- verifica sulla stima fatta per sezione - aggiunta funziona CreateProduction ed abbozzo CalcProduction - anticipato subscribe a risposta verifica via Redis - aggiunta lettura dati del profilo
This commit is contained in:
+6
-3
@@ -347,9 +347,12 @@ function BeamWallPipeLib.AsyncVerifyPartCalc( nPartId, BarPath, ProjType, sMachi
|
||||
Args = Args}
|
||||
local JsonQuestion = JSON:encode( Question)
|
||||
|
||||
EgtRedisAsyncSubscribe( nRedisConnectionId, CurrAnswerChannel)
|
||||
local bOk = EgtRedisAsyncPublish( nRedisConnectionId, QuestionChannel, JsonQuestion)
|
||||
if bOk then
|
||||
EgtRedisAsyncSubscribe( nRedisConnectionId, CurrAnswerChannel)
|
||||
if not bOk then
|
||||
EgtOutLog( 'Error! Verify Redis publish failed on PartId ' .. nPartId .. ' and channel ' .. CurrAnswerChannel .. '!')
|
||||
EgtRedisAsyncUnsubscribe( nRedisConnectionId, CurrAnswerChannel)
|
||||
EgtOutLog( 'EgtRedisAsyncUnsubscribe ' .. nRedisConnectionId .. ' ' .. CurrAnswerChannel)
|
||||
end
|
||||
return bOk, CurrAnswerChannel
|
||||
end
|
||||
@@ -469,7 +472,7 @@ function BeamWallPipeLib.NestBeam( PartIdList, RawList, MachineNameList, StartOf
|
||||
if not bOk then
|
||||
local sErrorMsg = 'Errore! Chiamata alla funzione NestProcessNew.lua fallita! (' .. ( sErr or '') .. ')'
|
||||
EgtOutLog( sErrorMsg)
|
||||
return false, { Error = sErrorMsg}
|
||||
return false, sErrorMsg
|
||||
end
|
||||
--EgtSaveFile()
|
||||
--local bMachiningOk ,dTime = AnalyzeResult( RESULT)
|
||||
|
||||
Reference in New Issue
Block a user