ProductionUiCordonel: - ExecPasswordFile retries if installation failed
This commit is contained in:
+11
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user