update cron job
This commit is contained in:
parent
19300ddda6
commit
acc8faa406
@ -116,7 +116,7 @@ async def run():
|
|||||||
tasks.append(process_ticker(ticker))
|
tasks.append(process_ticker(ticker))
|
||||||
|
|
||||||
# Run tasks concurrently in batches to avoid too many open connections
|
# 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)):
|
for i in tqdm(range(0, len(tasks), batch_size)):
|
||||||
batch = tasks[i:i + batch_size]
|
batch = tasks[i:i + batch_size]
|
||||||
await asyncio.gather(*batch)
|
await asyncio.gather(*batch)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user