fix: 宇宙三级兜底(资金流活跃股) + 评分启动即跑

This commit is contained in:
lookt
2026-09-15 21:48:47 +08:00
parent a1329442bd
commit ab7f77163f
2 changed files with 16 additions and 9 deletions
+2 -2
View File
@@ -70,13 +70,13 @@ async def collector_task(_app):
quant.start()
def _quant_loops():
time.sleep(5) # 启动即先跑一轮打分(K线可能不足,引擎会自行跳过)
while True:
try:
time.sleep(SCORING_INTERVAL_S)
quant.run_scoring_and_push()
except Exception as e:
print('[quant-loop]', e, flush=True)
time.sleep(60)
time.sleep(SCORING_INTERVAL_S)
threading.Thread(target=_quant_loops, daemon=True, name='quant-scoring').start()