(20250118) Extended the time between mail sync batch generation.

This commit is contained in:
2025-01-18 14:02:52 +05:30
parent 258b2fdbaf
commit 851cfd457e
+3 -2
View File
@@ -401,8 +401,9 @@ async def sync_accounts(batch_size: int) -> None:
results = await asyncio.gather(*tasks)
# Small delay to not overload the database:
if len(auth_tokens_batch) == 0: await asyncio.sleep(4.0 + (random.random() * 2.0))
else: await asyncio.sleep(1.0 + (random.random() * 2.0))
await asyncio.sleep(100.0 + (random.random() * 20.0))
# if len(auth_tokens_batch) == 0: await asyncio.sleep(4.0 + (random.random() * 2.0))
# else: await asyncio.sleep(1.0 + (random.random() * 2.0))
# *****************************************************************************************************************