update cron job

This commit is contained in:
MuslemRahimi 2024-07-05 22:38:04 +02:00
parent 19300ddda6
commit acc8faa406

View File

@ -116,7 +116,7 @@ async def run():
tasks.append(process_ticker(ticker))
# Run tasks concurrently in batches to avoid too many open connections
batch_size = 10 # Adjust based on your system's capacity
batch_size = 1 # Adjust based on your system's capacity
for i in tqdm(range(0, len(tasks), batch_size)):
batch = tasks[i:i + batch_size]
await asyncio.gather(*batch)