Skip to content

Commit 54052b9

Browse files
authored
Also do not give up when uploading steps metadata (actions#3280)
1 parent f2c05de commit 54052b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Runner.Common/JobServerQueue.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,9 @@ private async Task ProcessTimelinesUpdateQueueAsync(bool runOnce = false)
709709
{
710710
Trace.Info("Catch exception during update steps, skip update Results.");
711711
Trace.Error(e);
712-
if (!_resultsServiceOnly)
712+
_resultsServiceExceptionsCount++;
713+
// If we hit any exceptions uploading to Results, let's skip any additional uploads to Results unless Results is serving logs
714+
if (!_resultsServiceOnly && _resultsServiceExceptionsCount > 3)
713715
{
714716
_resultsClientInitiated = false;
715717
SendResultsTelemetry(e);

0 commit comments

Comments
 (0)