mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-29 08:14:26 +01:00
Merge #5051
5051: Add timeout on read and write operations. r=irevoire a=dureuill # Pull Request ## Related issue Addresses #5054 ## What does this PR do? - Add a timeout for read and write operations in the REST embedder. This might address some issues about tasks that get "stuck" while embedding documents. Co-authored-by: Louis Dureuil <louis@meilisearch.com>
This commit is contained in:
commit
4e1ac9b0b4
@ -131,6 +131,7 @@ impl Embedder {
|
||||
let client = ureq::AgentBuilder::new()
|
||||
.max_idle_connections(REQUEST_PARALLELISM * 2)
|
||||
.max_idle_connections_per_host(REQUEST_PARALLELISM * 2)
|
||||
.timeout(std::time::Duration::from_secs(30))
|
||||
.build();
|
||||
|
||||
let request = Request::new(options.request)?;
|
||||
|
Loading…
Reference in New Issue
Block a user