mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-04-26 14:57:41 +00:00
Ignore deadline exceeded errors.
This commit is contained in:
parent
6c662e2109
commit
438cb1fdac
1 changed files with 6 additions and 0 deletions
|
|
@ -276,6 +276,12 @@ func sendDigestErrorMail(e error, c context.Context, gitHubUserId int) {
|
||||||
// Ignore 502s from GitHub, there's nothing we do about them.
|
// Ignore 502s from GitHub, there's nothing we do about them.
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if appengine.IsTimeoutError(e) ||
|
||||||
|
strings.Contains(e.Error(), "DEADLINE_EXCEEDED") {
|
||||||
|
// Ignore deadline exceeded errors for URL fetches
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
errorMessage := &mail.Message{
|
errorMessage := &mail.Message{
|
||||||
Sender: "RetroGit Admin <digests@retrogit.com>",
|
Sender: "RetroGit Admin <digests@retrogit.com>",
|
||||||
To: []string{"mihai.parparita@gmail.com"},
|
To: []string{"mihai.parparita@gmail.com"},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue