Do not give us if Results is powering logs

This commit is contained in:
Yang Cao
2023-09-27 09:35:28 -04:00
parent 8f1c070506
commit 75a11dac1b

View File

@@ -541,8 +541,11 @@ namespace GitHub.Runner.Common
Trace.Error(ex);
errorCount++;
// If we hit any exceptions uploading to Results, let's skip any additional uploads to Results
_resultsClientInitiated = false;
// If we hit any exceptions uploading to Results, let's skip any additional uploads to Results unless Results is serving logs
if (!_resultsServiceOnly)
{
_resultsClientInitiated = false;
}
SendResultsTelemetry(ex);
}
@@ -660,7 +663,10 @@ namespace GitHub.Runner.Common
{
Trace.Info("Catch exception during update steps, skip update Results.");
Trace.Error(e);
_resultsClientInitiated = false;
if (!_resultsServiceOnly)
{
_resultsClientInitiated = false;
}
SendResultsTelemetry(e);
}