Refactor reservation preemption handling and logging

- Removed the reservation preempt minimum value from the Runner and GUI components.
- Updated logging mechanism to streamline log message handling and improve readability.
- Introduced a new method for appending log lines in the Runner class.
- Cleaned up related GUI elements and configuration options in web interface.
- Deleted obsolete simulation scripts related to reservation preemption checks.
This commit is contained in:
Your Name committed 2026-01-07 21:24:10 +08:00
1 parent eb96d6869e
commit 93d47a16d6
20 files changed
+786 -1051

No files matched your search

-18
View File
@@ -238,12 +238,6 @@ def parse_args(argv: list[str]) -> argparse.Namespace:
default=None,
help="运行时覆盖:回退后滑动等待(秒),仅在未启用回退校验时生效,可加快回退速度",
)
p.add_argument(
"--reservation-preempt-min-value",
type=float,
default=None,
help="运行时覆盖:预约抢占最小价值(元),低于该值的预约不会抢占当前任务",
)
p.add_argument(
"--fudai-find-max-attempts",
type=int,
@@ -351,11 +345,6 @@ def main(argv: list[str]) -> int:
analyser.resolution_ratio_x, analyser.resolution_ratio_y = (
analyser.operation.get_device_resolution(device_id)
)
print(
"[TEST-COMMENT] device_id={} res={}x{}".format(
device_id, analyser.resolution_ratio_x, analyser.resolution_ratio_y
)
)
msg = str(getattr(args, "test_comment_text", "测试评论123") or "测试评论123")
# 逐步截图
@@ -541,13 +530,6 @@ def main(argv: list[str]) -> int:
)
except Exception:
pass
if getattr(args, "reservation_preempt_min_value", None) is not None:
try:
analyser.reservation_preempt_min_value_yuan = max(
0.0, float(args.reservation_preempt_min_value)
)
except Exception:
pass
# 运行时覆盖:找福袋最大尝试次数
if getattr(args, "fudai_find_max_attempts", None) is not None:
try: