mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7662] [Issue]: "Queue media generation requests" doesn't stop concurrent requests to the same provider #4238
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4238
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ylli-selmani on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7662
Originally assigned to: @ylli-selmani on GitHub.
Summary
With Settings → Overall Generations → Queue media generation requests on, NovelAI still rejects image requests because several of them reach it at the same time. The queue only covers a few call sites, so most automatic image work bypasses it.
Expected behavior
With the toggle on, every image request to the same provider account waits for the previous one to finish, whichever feature sends it: the Illustrator agent, the model's
[illustrate]command, Character Tracker NPC avatars, capability packages like Slurp, the gallery, and game assets.Actual behavior
NovelAI rejects requests for concurrent generation in these cases:
[illustrate]command in the same turn.What the code does (staging @
5c07e57):runMediaGenerationRequest(services/image/image-generation-queue.ts): the illustrator retry route, the gallery selfie, scene video, and gallery image generation. Game assets use it only to run that one batch with a single worker.generateImageruns every call withqueue: false(image-generation.ts:232-234). Every other path gets only the global ceiling, which allows 4 parallel requests (DEFAULT_MEDIA_GENERATION_CONCURRENCY)./generatenever receives the toggle. The automatic illustration and the[illustrate]command each start their own async job and callgenerateImagedirectly (generate.routes.ts:14416,:14683). NPC avatars are fire-and-forget throughtracker-portrait.ts:116. Capability packages (Slurp) reachgenerateImagethroughhost.images.generate(capability-integrations.service.ts:76).Steps to reproduce
[illustrate]while the Illustrator is also drawing.Environment
5c07e57)Logs, screenshots, or video
Code-path analysis above.
Additional context
Proposed fix: move the per-account FIFO into
generateImage/generateVideo, next to the existing global ceiling. Key it on the provider endpoint plus account, and read the toggle on the server. KeeprunMediaGenerationRequestworking for existing callers. Add a short gap after each response, plus a backoff on "concurrent generation" rejections. Because packages go throughhost.images.generate, Slurp and other capability packages get the fix without changes in Marinara-Agents.Related: #5097 (global concurrency ceiling).
Template check