Skip to content
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 tgis timeout #358

Merged
merged 5 commits into from
May 17, 2024
Merged

Add tgis timeout #358

merged 5 commits into from
May 17, 2024

Conversation

gkumbhat
Copy link
Collaborator

Changes

  • Add configurable request timeout for request going to TGIS backend

Signed-off-by: gkumbhat <kumbhat.gaurav@gmail.com>
Signed-off-by: gkumbhat <kumbhat.gaurav@gmail.com>
Signed-off-by: gkumbhat <kumbhat.gaurav@gmail.com>
Signed-off-by: gkumbhat <kumbhat.gaurav@gmail.com>
Signed-off-by: gkumbhat <kumbhat.gaurav@gmail.com>
Copy link
Collaborator

@evaline-ju evaline-ju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - the test client functions don't seem to match up (already) but doesn't have to block this PR

return StubTGISClient.tokenize(request)

@staticmethod
def unary_generate(request):
def unary_generate(request, **kwargs):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, the args here look pretty different overall than the TGISClient (i.e. no request is passed there, and timeout wouldn't be coming through these functions anyway)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does.. I think there is some mismatch in terms of how the tests have been written. I need to revisit and refactor the tests a bit I think, but punting on that for getting the fix out.

@gkumbhat gkumbhat merged commit 98578c9 into main May 17, 2024
7 checks passed
@gkumbhat gkumbhat deleted the add_tgis_timeout branch May 17, 2024 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants