From 84aec4105d40e70ba08d29095d744cf28572054d Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sun, 18 Aug 2024 21:56:58 +0200 Subject: [PATCH] update cron job --- app/cron_share_statistics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/cron_share_statistics.py b/app/cron_share_statistics.py index 5ff3803..17b7db1 100644 --- a/app/cron_share_statistics.py +++ b/app/cron_share_statistics.py @@ -97,9 +97,9 @@ async def run(): await save_as_json(ticker, forward_pe_dict, short_dict) counter += 1 - if counter % 20 == 0: - print(f"Processed {counter} tickers, waiting for 5 seconds...") - await asyncio.sleep(5) + if counter % 50 == 0: + print(f"Processed {counter} tickers, waiting for 60 seconds...") + await asyncio.sleep(60) except Exception as e: print(ticker, e)