-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add retry for graph node #471
Conversation
} | ||
retryCount++ | ||
|
||
err := q.GraphQLQuerier.Query(ctx, query, variables) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe in a future PR, but it should check err
and only retry on transient errors (429/5xx). If the request itself is invalid, retries shouldn't be made.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really sure how to tell in this case. Going to leave this for a future PR.
return args.Error(0) | ||
} | ||
|
||
func TestRetryQuerier_Query(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it conventional to use underscore in golang naming?
Why are these changes needed?
Checks