From 6ccd2ee79d33669baea3d5d49b3fc5597e32d177 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Tue, 16 Mar 2021 15:23:40 +0200 Subject: Changed bit result Pending to Skipped. Changed status display order. Increased BIT fetch timeout to 5 min. --- .../Operation/BitResultComposition.cs | 4 ++-- .../Tango.Integration/Operation/JobHandler.cs | 20 ++++++++++---------- .../Tango.Integration/Operation/MachineOperator.cs | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) (limited to 'Software/Visual_Studio/Tango.Integration') diff --git a/Software/Visual_Studio/Tango.Integration/Operation/BitResultComposition.cs b/Software/Visual_Studio/Tango.Integration/Operation/BitResultComposition.cs index cbe6e5fa3..8c27d36fa 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/BitResultComposition.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/BitResultComposition.cs @@ -22,9 +22,9 @@ namespace Tango.Integration.Operation { switch (status) { - case BitResultStatus.Passed: + case BitResultStatus.Skipped: return 3; - case BitResultStatus.Pending: + case BitResultStatus.Passed: return 2; case BitResultStatus.Warning: return 1; diff --git a/Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs b/Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs index 605e8be47..342bc01e3 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs @@ -26,7 +26,7 @@ namespace Tango.Integration.Operation protected double _last_progress; protected const int PROGRESS_REPORT_RANGE_METERS = 5; protected bool loggedContinueMessage; - private int _handlerCounter; + private static int _handlerCounter; #region Events @@ -335,15 +335,15 @@ namespace Tango.Integration.Operation if (_last_progress != s.Progress) { - if (s.Progress <= PROGRESS_REPORT_RANGE_METERS || s.Progress >= Status.TotalProgress - PROGRESS_REPORT_RANGE_METERS) - { - LogManager.Log($"Updating job progress {s.Progress}/{Status.TotalProgress}..."); - } - else if (!loggedContinueMessage) - { - loggedContinueMessage = true; - LogManager.Log($"Progress logging will continue {PROGRESS_REPORT_RANGE_METERS} meters before completion..."); - } + //if (s.Progress <= PROGRESS_REPORT_RANGE_METERS || s.Progress >= Status.TotalProgress - PROGRESS_REPORT_RANGE_METERS) + //{ + LogManager.Log($"{GetJobHandlerString()} Updating job progress {s.Progress}/{Status.TotalProgress}..."); + //} + //else if (!loggedContinueMessage) + //{ + // loggedContinueMessage = true; + // LogManager.Log($"Progress logging will continue {PROGRESS_REPORT_RANGE_METERS} meters before completion..."); + //} } if (s.Progress < 0) diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs index 3bbbd2efe..bf21df35d 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs @@ -4193,7 +4193,7 @@ namespace Tango.Integration.Operation var response = await SendRequest(new BitResultsRequest(), new TransportRequestConfig() { ShouldLog = true, - Timeout = TimeSpan.FromMinutes(1.5) + Timeout = TimeSpan.FromMinutes(5) }); var compositions = new List(); @@ -4202,7 +4202,7 @@ namespace Tango.Integration.Operation { BitResultComposition composition = new BitResultComposition(); composition.BitType = bitType; - composition.BitResult = new BitResult() { BitType = (PMR.Diagnostics.BitType)bitType.Code }; + composition.BitResult = new BitResult() { BitType = (PMR.Diagnostics.BitType)bitType.Code, Description = "Skipped" }; compositions.Add(composition); } -- cgit v1.3.1