fix(HEL-494): 日K默认45根并修复问天行业0/205覆盖

悬浮窗和详情页只画最近45个交易日,中枢仍保留250日历史。盘后缺sw_daily时保留成分日线内核,外显走免费申万;成分行情改为全市场快照+分页,不再截成前60只。

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
总工
2026-09-08 17:00:01 +08:00
co-authored by Cursor multica-agent
parent 3e828b346c
commit b5d65ecb41
17 changed files with 343 additions and 127 deletions
+10 -1
View File
@@ -110,7 +110,7 @@ class Scheduler:
("eod_b", time(15, 10)),
("eod_c", time(16, 40)),
("eod_d", time(16, 45)),
("eod_e", time(18, 5)),
("eod_e", time(15, 20)),
("eod_f", time(22, 40)),
("cleanup", time(0, 30)),
("backup", time(0, 40)),
@@ -124,6 +124,9 @@ class Scheduler:
key = (job_id, day, at.strftime("%H%M"))
if key in self._fired:
continue
if job_id not in self.jobs:
self._fired.add(key)
continue
if job_id in {"eod_a", "eod_b", "eod_c", "eod_d", "eod_e", "eod_f", "stocks_refresh"} and not open_day:
self._fired.add(key)
continue
@@ -203,6 +206,12 @@ class Scheduler:
LOGGER.warning("eod retry failed for %s", day, exc_info=True)
ran.append("eod_retry")
self._settle_eod(day)
if "eod_e" in self.jobs and not self.pipeline.active_batch("sector_daily", day):
try:
self.run_job("eod_e", day)
ran.append("eod_e")
except Exception:
LOGGER.exception("sector_daily retry failed for %s", day)
return ran
def _settle_eod(self, day: str) -> None: