Skip to content

fix(pipeline): stop idle L2 cold-start polling#247

Open
YOMXXX wants to merge 1 commit into
TencentCloud:mainfrom
YOMXXX:fix/pipeline-idle-l2-cold-start
Open

fix(pipeline): stop idle L2 cold-start polling#247
YOMXXX wants to merge 1 commit into
TencentCloud:mainfrom
YOMXXX:fix/pipeline-idle-l2-cold-start

Conversation

@YOMXXX

@YOMXXX YOMXXX commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • pass the L2 trigger source into runL2 so timer-originated cold-start retries can be distinguished from fresh L1 activity
  • stop re-arming maxInterval polling when the cold-start retry still skips and no L2 cursor exists
  • keep maxInterval polling unchanged after L2 establishes a cursor, and re-arm normally on the next L1 event
  • add regression coverage for the idle skip loop and the established-cursor path

Verification

  • npm test
  • npm run build

Fixes #155
Related: #193

Signed-off-by: 李冠辰 <liguanchen@xiaomi.com>
@Maxwell-Code07

Copy link
Copy Markdown
Collaborator

Awesome work! 13 fixes in one batch covering Gateway hardening, embedding compatibility, Hermes memory injection, offload stability, and pipeline optimization — a very productive cleanup session 👏

We'll review and merge them one by one 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Main thread CPU pinning at 100%: aggressive SQLite polling in memory-tdai pipeline

2 participants