georgeamccarthy / protein_search

The neural search engine for proteins.
GNU Affero General Public License v3.0
15 stars 6 forks source link

bug: application times out if indexing goes on for longer than 5 mins #45

Closed georgeamccarthy closed 3 years ago

georgeamccarthy commented 3 years ago

Describe the bug Application times out if indexing goes on for longer than 5 mins

To Reproduce Steps to reproduce the behavior:

  1. Index lots of proteins
  2. See error on completion: raise asyncio.TimeoutError from None asyncio.exceptions.TimeoutError

Expected behavior Longer timeout for long indexing.

Additional context Discussed on Slack https://jina-ai.slack.com/archives/C0169V26ATY/p1627573136319000?thread_ts=1627572153.318800&cid=C0169V26ATY

Deepankar (Jina AI) Please set a request_size . That controls number of documents in each request & would help avoiding timeouts.

georgeamccarthy commented 3 years ago

This might be fixed by this commit. Let's keep an eye out for timeout errors. I've set the request size to 10 for now, it's good for small batches.

@fissoreg