Also do not give up when uploading steps metadata (#3280)

This commit is contained in:
Yang Cao
2024-05-10 11:02:29 -04:00
committed by GitHub
parent f2c05de91c
commit 54052b94fb

View File

@@ -709,7 +709,9 @@ namespace GitHub.Runner.Common
{
Trace.Info("Catch exception during update steps, skip update Results.");
Trace.Error(e);
if (!_resultsServiceOnly)
_resultsServiceExceptionsCount++;
// If we hit any exceptions uploading to Results, let's skip any additional uploads to Results unless Results is serving logs
if (!_resultsServiceOnly && _resultsServiceExceptionsCount > 3)
{
_resultsClientInitiated = false;
SendResultsTelemetry(e);