From b253ee7bff8d09da2fde279b4b1962a4f7c96604 Mon Sep 17 00:00:00 2001 From: oliver Date: Tue, 12 May 2026 11:36:30 +0800 Subject: [PATCH] fix(netx): do not put debounce wait text in runtime last_error Co-authored-by: Cursor --- netx_api/main.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/netx_api/main.py b/netx_api/main.py index 4d5d37c..6e8a236 100644 --- a/netx_api/main.py +++ b/netx_api/main.py @@ -325,12 +325,8 @@ def _maybe_wait_for_sync_interval( return wait_s = float(interval_s) - elapsed _schedule_log.info("%s: last finished %.0fs ago, wait %.0fs before sync", label, elapsed, wait_s) - _set_runtime_task( - task_id, - status="running", - last_run_at=datetime.now(timezone.utc), - last_error=f"距上次同步结束未满周期,等待约 {int(wait_s)}s …", - ) + # Do not write debounce/wait text to last_error — it is not an error and would + # overwrite the cleared state right after a successful sync on the next loop tick. _sleep_or_until_paused(task_id, wait_s)