From 981d35e1cf8befdcbeb311892de04d4914d71b55 Mon Sep 17 00:00:00 2001 From: xxm Date: Fri, 21 Aug 2026 14:07:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(mofin=5Fhealth):=20=E4=BB=8A=E5=A4=A9?= =?UTF-8?q?=E5=B7=B2=E8=BF=90=E8=A1=8C=E7=9A=84LLM=20job=E4=B8=8D=E6=8A=A5?= =?UTF-8?q?output=5Fmissing=E8=AF=AF=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/mofin_health.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deploy/profile-scripts/mofin_health.py b/deploy/profile-scripts/mofin_health.py index a258393b..a002c8fb 100644 --- a/deploy/profile-scripts/mofin_health.py +++ b/deploy/profile-scripts/mofin_health.py @@ -1062,7 +1062,10 @@ def build_report(): _sched = str(j.get("schedule", "")) _weekday_only = ("1-5" in _sched or "mon" in _sched.lower()) _is_weekday = now.weekday() < 5 - if not _today_files and (_weekday_only and _is_weekday): + # 如果 job 今天已运行(last_run 今天),不报 output_missing(SILENT 是正常的) + _last_run_date = str(j.get('last_run_at', ''))[:10] + _ran_today = (_last_run_date == _today) + if not _today_files and (_weekday_only and _is_weekday) and not _ran_today: output_missing = True output_missing_reason = f"今天({_today})工作日应按调度运行但输出目录无文件(last_run={str(j.get('last_run_at',''))[:16]})" except Exception: