Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Search query API timeout and retry #4631

Merged
merged 3 commits into from Jun 27, 2022
Merged

Search query API timeout and retry #4631

merged 3 commits into from Jun 27, 2022

Conversation

mojtaba-komeili
Copy link
Contributor

Patch description

Right now, the SearchEngineRetriever agent sends a single search request to the search server and waits on that. Without timeout, this may mean that the agent will be blocked until receiving a response (which may never happen). Also upon failure on request, it does not retry. This patch solve this issue.
Two more opt are added the to the agent:

  • search_server_timeout that controls timeout in seconds
  • max_num_retries for the number of times to retry until there is a 200 response from the server.

@mojtaba-komeili
Copy link
Contributor Author

@klshuster I am working on making requests async. Don't review it yet. I will ping you again when it was ready.

@mojtaba-komeili
Copy link
Contributor Author

@klshuster I am working on making requests async. Don't review it yet. I will ping you again when it was ready.

Given other priorities, pushing this for later. Let's go with this version for now.

@mojtaba-komeili mojtaba-komeili merged commit 6af3a27 into main Jun 27, 2022
@mojtaba-komeili mojtaba-komeili deleted the search-api-to branch June 27, 2022 23:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants