Skip to content

Commit

Permalink
fix: meilisearch size
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTheDev committed Apr 3, 2024
1 parent d5c233c commit b7a44c8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 27 deletions.
51 changes: 25 additions & 26 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion gamewide/search/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,11 @@ async def add_documents(documents):
await asyncio.sleep(random.randint(0, 50)/10)
await session.post('http://85.10.200.219:7700/indexes/players/documents', headers=headers, json=documents)

await add_documents(documents=docs_to_insert)
worked = False
while not worked:
try:
await add_documents(documents=docs_to_insert)
worked = True
except:
await asyncio.sleep(5)
await asyncio.sleep(15)

0 comments on commit b7a44c8

Please sign in to comment.