mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 03:10:46 +08:00
fix(netx): do not put debounce wait text in runtime last_error
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
666541266b
commit
b253ee7bff
1 changed files with 2 additions and 6 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue