mirror of
https://github.com/ZhuLinsen/daily_stock_analysis
synced 2026-09-20 10:53:33 +08:00
feat(runtime): partial notify and diagnostics after scheduler timeout (#2338)
* feat(runtime): partial notify and diagnostics after scheduler timeout After a hard timeout, scan already-saved analyses and enrich last_error with completed/pending counts; optional push via DSA_TIMEOUT_PARTIAL_NOTIFY. Refs #2328 * test(runtime): cover timeout partial delivery helpers Refs #2328 * docs: document DSA_TIMEOUT_PARTIAL_NOTIFY Refs #2328 * fix(config): use switch ui_control for timeout partial notify DSA_TIMEOUT_PARTIAL_NOTIFY used ui_control=toggle, which SystemConfigResponse rejects and broke GET /config in backend-tests 1/3. * docs(runtime): document timeout partial fail-open for operators Channel exceptions are swallowed after the analysis lock is released, so they cannot keep status.running true. Collect/import failures stay in warning logs because last_error cannot distinguish them from zero completions.
This commit is contained in:
@@ -826,6 +826,8 @@ SCHEDULE_TIME=18:00
|
||||
SCHEDULE_TIMES=
|
||||
# Web/API runtime scheduler 单次分析硬超时(秒,最小 60 秒)
|
||||
DSA_RUNTIME_SCHEDULER_TIMEOUT_SECONDS=2700
|
||||
# 硬超时后是否推送已落库个股的部分完成通知(true/false;默认 true,未设置即开启,此前超时不推送)
|
||||
DSA_TIMEOUT_PARTIAL_NOTIFY=true
|
||||
# 定时模式启动时是否立即执行一次分析(true/false)
|
||||
# 若未显式设置,定时模式会沿用 RUN_IMMEDIATELY 的运行时覆盖语义以兼容旧配置
|
||||
SCHEDULE_RUN_IMMEDIATELY=true
|
||||
|
||||
Reference in New Issue
Block a user