(20250118) Extended the time between mail sync batch generation.
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
# *****************************************************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user