update cron job
This commit is contained in:
parent
15d39e7a25
commit
7b43918f3f
@ -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")
|
||||
|
||||
@ -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():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user