Skip to content

Commit 9afaebb

Browse files
committed
fix(review-feedback-924): address latest review comments
1 parent 2bbc819 commit 9afaebb

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/core/pipeline.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,14 +1325,19 @@ def run(
13251325
code = future_to_code[future]
13261326
try:
13271327
result = future.result()
1328-
if result:
1328+
if result and result.success:
13291329
results.append(result)
13301330
if single_stock_notify and send_notification and not dry_run:
13311331
self._send_single_stock_notification(
13321332
result,
13331333
report_type=report_type,
13341334
fallback_code=code,
13351335
)
1336+
elif result and not result.success:
1337+
logger.warning(
1338+
f"[{code}] 分析结果标记为失败,不计入汇总: "
1339+
f"{result.error_message or '未知原因'}"
1340+
)
13361341

13371342
# Issue #128: 分析间隔 - 在个股分析和大盘分析之间添加延迟
13381343
if idx < len(stock_codes) - 1 and analysis_delay > 0:

0 commit comments

Comments
 (0)