mirror of
https://github.com/actions/runner.git
synced 2025-12-12 15:13:30 +00:00
Do not give us if Results is powering logs
This commit is contained in:
@@ -541,8 +541,11 @@ namespace GitHub.Runner.Common
|
|||||||
Trace.Error(ex);
|
Trace.Error(ex);
|
||||||
errorCount++;
|
errorCount++;
|
||||||
|
|
||||||
// If we hit any exceptions uploading to Results, let's skip any additional uploads to Results
|
// If we hit any exceptions uploading to Results, let's skip any additional uploads to Results unless Results is serving logs
|
||||||
_resultsClientInitiated = false;
|
if (!_resultsServiceOnly)
|
||||||
|
{
|
||||||
|
_resultsClientInitiated = false;
|
||||||
|
}
|
||||||
|
|
||||||
SendResultsTelemetry(ex);
|
SendResultsTelemetry(ex);
|
||||||
}
|
}
|
||||||
@@ -660,7 +663,10 @@ namespace GitHub.Runner.Common
|
|||||||
{
|
{
|
||||||
Trace.Info("Catch exception during update steps, skip update Results.");
|
Trace.Info("Catch exception during update steps, skip update Results.");
|
||||||
Trace.Error(e);
|
Trace.Error(e);
|
||||||
_resultsClientInitiated = false;
|
if (!_resultsServiceOnly)
|
||||||
|
{
|
||||||
|
_resultsClientInitiated = false;
|
||||||
|
}
|
||||||
|
|
||||||
SendResultsTelemetry(e);
|
SendResultsTelemetry(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user