fix(mq): 图片与动作拆开独立 Stream,避免同队互堵放大上游 429 - #814
Merged
johnnyzhang-eng merged 2 commits intoAug 27, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #814 +/- ##
==========================================
- Coverage 87.07% 86.49% -0.59%
==========================================
Files 288 292 +4
Lines 21525 21866 +341
Branches 3294 3329 +35
==========================================
+ Hits 18742 18912 +170
- Misses 1856 2023 +167
- Partials 927 931 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 16 files with indirect coverage changes 🚀 New features to boost your workflow:
|
johnnyzhang-eng
approved these changes
Aug 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
windup:stream:generation:新任务分别进generation-image/generation-action,按类型独立出队。XREADGROUP,避免 PEL 里堆已领未跑的消息。generationStream 保留 drain 消费者吃残留消息。Closes #813
Test plan
uv run pytest tests/test_mq_catalog.py tests/test_mq_worker.py tests/test_i2v_poll.py tests/test_generation_quota.py tests/test_generation_api.py tests/test_mq.py tests/test_mq_delayed.py tests/test_env_example_keys_are_live.py -qgeneration-image;新动作/poll 只出现在generation-actiongenerationStream 上残留消息仍能被 drain 消费