Skip to content

Commit 046c50f

Browse files
committed
fix delay: delay on exceptions
1 parent b89c3dd commit 046c50f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/IssueInProgressDaysLabeler.Model/Extensions/ApiHelpers.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public static async Task<T> ExecuteWithRetryAndDelay<T>(Func<Task<T>> action, in
2828
catch (ApiException)
2929
{
3030
if (retryCount == 0) throw;
31+
32+
await Task.Delay(TimeSpan.FromSeconds(1));
3133
}
3234
}
3335
}

0 commit comments

Comments
 (0)