From 6532b080249c44fab33b136daa69340c9b107425 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Mon, 26 Aug 2024 10:58:07 +0200 Subject: [PATCH] update job --- app/cron_borrowed_share.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/cron_borrowed_share.py b/app/cron_borrowed_share.py index 416e684..a552971 100644 --- a/app/cron_borrowed_share.py +++ b/app/cron_borrowed_share.py @@ -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: