update cron job

This commit is contained in:
MuslemRahimi 2024-10-16 23:52:20 +02:00
parent 15d39e7a25
commit 7b43918f3f
2 changed files with 2 additions and 5 deletions

View File

@ -3085,7 +3085,7 @@ async def get_dashboard_info(api_key: str = Security(get_api_key)):
res = []
redis_client.set(cache_key, orjson.dumps(res))
redis_client.expire(cache_key, 60*5)
redis_client.expire(cache_key, 60)
return res
@app.post("/sentiment-analysis")

View File

@ -109,10 +109,6 @@ def run_share_statistics():
run_command(["python3", "cron_share_statistics.py"])
def run_cron_market_movers():
run_command(["python3", "cron_market_movers.py"])
def run_cron_market_news():
run_command(["python3", "cron_market_news.py"])
run_command(["python3", "cron_company_news.py"])
@ -251,6 +247,7 @@ def run_hedge_fund():
run_command(["python3", "cron_hedge_funds.py"])
def run_dashboard():
run_command(["python3", "cron_market_movers.py"])
run_command(["python3", "cron_dashboard.py"])
def run_tracker():