ProductionUiCordonel: - ExecPasswordFile retries if installation failed

This commit is contained in:
Thomas Wiedebusch
2025-04-15 14:35:23 +02:00
parent 2f8acdb0b5
commit c5153691e5
2 changed files with 12 additions and 3 deletions
@@ -86,6 +86,9 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses.EolPr
/// <remarks date="2025-Apr-07" author="Thomas Wiedebusch">
/// - CancellationToken.
/// </remarks>
/// <remarks date="2025-Apr-15" author="Thomas Wiedebusch">
/// - Retries for installation of password file.
/// </remarks>
public override StatusReturn ExecuteProcess()
{
// Uncheck executed process to leave the result open needed for retries
@@ -184,8 +187,14 @@ namespace Xylem.Common.Production.ProductionUiCordonel.ProductionProcesses.EolPr
if (!Meter.IsLoggedOn)
Meter.Login();
retValBol = _meterPwdFile.UnlockEraseWriteMeterPwdFile();
retValBol &= _meterPwdFile.WriteMeterPwdFile() && _meterPwdFile.VerifyMeterPwdFile();
// Install and check password file
var retryCtr = 2;
do
{
retValBol = _meterPwdFile.UnlockEraseWriteMeterPwdFile();
retValBol &= _meterPwdFile.WriteMeterPwdFile() && _meterPwdFile.VerifyMeterPwdFile();
} while (retryCtr-- > 0 && !retValBol);
ActualProcessProgress++;
if (!retValBol)