update job

This commit is contained in:
MuslemRahimi 2024-08-26 10:58:07 +02:00
parent 091f031fc4
commit 6532b08024

View File

@ -61,11 +61,11 @@ async def run():
tasks.append(process_ticker(ticker))
# Run tasks concurrently in batches to avoid too many open connections
batch_size = 1 # Adjust based on your system's capacity
batch_size = 3 # 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)
#await asyncio.sleep(30)
await asyncio.sleep(60)
if __name__ == "__main__":
try: