Skip to content

Commit

Permalink
Whitelist context deadline exceeded error for retry (#981)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxing1292 authored Jul 20, 2018
1 parent 4769b55 commit c19a5e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ func IsServiceNonRetryableError(err error) bool {

// IsWhitelistServiceTransientError checks if the error is a transient error.
func IsWhitelistServiceTransientError(err error) bool {
if err == context.DeadlineExceeded {
return true
}

switch err.(type) {
case *workflow.InternalServiceError:
return true
Expand Down

0 comments on commit c19a5e6

Please sign in to comment.