From 438cb1fdac2dd677bfea50e9a19ddecfc017fc2a Mon Sep 17 00:00:00 2001 From: Mihai Parparita Date: Sat, 7 Mar 2020 14:55:16 -0800 Subject: [PATCH] Ignore deadline exceeded errors. --- app/retrogit.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/retrogit.go b/app/retrogit.go index 813f9ce..ff23059 100644 --- a/app/retrogit.go +++ b/app/retrogit.go @@ -276,6 +276,12 @@ func sendDigestErrorMail(e error, c context.Context, gitHubUserId int) { // Ignore 502s from GitHub, there's nothing we do about them. return } + if appengine.IsTimeoutError(e) || + strings.Contains(e.Error(), "DEADLINE_EXCEEDED") { + // Ignore deadline exceeded errors for URL fetches + return + } + errorMessage := &mail.Message{ Sender: "RetroGit Admin ", To: []string{"mihai.parparita@gmail.com"},