Commit 6dae13f
authored
fix: max hit (#1193)
max_hit should only be restricted to PipelineTask
---
https://github.com/MaaEnd/MaaEnd/actions/runs/22839301359?pr=1112
## Summary by Sourcery
将 `max_hit` 的跟踪和限制仅应用于 `PipelineTask` 的识别流程,而不是共享的 `TaskBase` 实现。
Bug Fixes:
- 确保只有在 `PipelineTask` 中达到 `max_hit` 时才跳过识别尝试,从而避免对其他任务类型施加意外的限制。
Enhancements:
- 当在 `PipelineTask` 中达到 `max_hit` 以及发生识别命中时,记录 debug 和 info
日志消息,以提高可观测性。
<details>
<summary>Original summary in English</summary>
## Summary by Sourcery
Limit max_hit tracking and enforcement to PipelineTask recognition flow
instead of the shared TaskBase implementation.
Bug Fixes:
- Ensure recognition attempts are skipped when max_hit is reached only
within PipelineTask, preventing unintended limits on other task types.
Enhancements:
- Log debug and info messages when max_hit is reached and when
recognition hits occur within PipelineTask for better observability.
</details>1 parent b63eeff commit 6dae13f
4 files changed
Lines changed: 26 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
396 | 406 | | |
397 | 407 | | |
398 | 408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
285 | 294 | | |
286 | 295 | | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
287 | 301 | | |
288 | 302 | | |
289 | 303 | | |
| |||
323 | 337 | | |
324 | 338 | | |
325 | 339 | | |
326 | | - | |
327 | | - | |
| 340 | + | |
328 | 341 | | |
329 | 342 | | |
330 | 343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 64 | | |
76 | 65 | | |
77 | 66 | | |
| |||
93 | 82 | | |
94 | 83 | | |
95 | 84 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 85 | | |
102 | 86 | | |
103 | 87 | | |
| |||
0 commit comments