fix: 宇宙三级兜底(资金流活跃股) + 评分启动即跑
This commit is contained in:
+2
-2
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user