diff options
author | Nate Sesti <33237525+sestinj@users.noreply.github.com> | 2023-08-23 14:44:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-23 14:44:33 -0700 |
commit | 0c563fc28fefa0cd7181fd78c579c3a86faaa4f9 (patch) | |
tree | b67514fc49c7d19821d1a7f03579259b2948cc48 /continuedev/src | |
parent | c5211c2cd69f368cc564aad155080957b754de19 (diff) | |
download | sncontinue-0c563fc28fefa0cd7181fd78c579c3a86faaa4f9.tar.gz sncontinue-0c563fc28fefa0cd7181fd78c579c3a86faaa4f9.tar.bz2 sncontinue-0c563fc28fefa0cd7181fd78c579c3a86faaa4f9.zip |
Testing gh workflow (#401)
* testing
* logging again
* log home dir
* build m1 script
* correctly parse dates in history.tsx
* logging
* add redbaron to requirements.txt
* tweaks before merging to main
Diffstat (limited to 'continuedev/src')
-rw-r--r-- | continuedev/src/continuedev/core/context.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/continuedev/src/continuedev/core/context.py b/continuedev/src/continuedev/core/context.py index 326fb441..d47ad942 100644 --- a/continuedev/src/continuedev/core/context.py +++ b/continuedev/src/continuedev/core/context.py @@ -248,10 +248,12 @@ class ContextManager: for item in context_items ] async with Client("http://localhost:7700") as search_client: - await asyncio.wait_for( - search_client.index(SEARCH_INDEX_NAME).add_documents(documents), - timeout=5, - ) + + async def add_docs(): + index = await search_client.get_index(SEARCH_INDEX_NAME) + await index.add_documents(documents) + + await asyncio.wait_for(add_docs(), timeout=5) @staticmethod async def delete_documents(ids): |