1
0
Fork 0

Make an async request to all search connectors

This is the untest first pass at re-arranging remote search to work in
parallel rather than sequence. It moves a couple functions around
(raise_not_valid_url, for example, needs to be in connector_manager.py
now to avoid circular imports). It adds a function to Connector objects
that generates a search result (either to the isbn endpoint or the free
text endpoint) based on the query, which was previously done as part of
the search.

I also lowered the timeout to 8 seconds by default.
This commit is contained in:
Mouse Reeve 2022-05-30 10:15:22 -07:00
parent 4e3c346780
commit 9c03bf782e
4 changed files with 62 additions and 59 deletions

View file

@ -1,3 +1,4 @@
aiohttp==3.8.1
celery==5.2.2
colorthief==0.2.1
Django==3.2.13