[GH-ISSUE #4950] [Issue]: Max Parallel Agent Jobs limit not enforced across post-processing agents #2750

Closed
opened 2026-10-21 05:54:23 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Aug 12, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4950

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Tracker and Illustrator agents using the same OpenAI-compatible connection appear to send requests concurrently despite Max Parallel Agent Jobs being set to 1. This triggers ArliAI rate limits and causes both agents to use the fallback model.

Expected behavior

When Max Parallel Agent Jobs is set to 1, unbatched agent requests using the same connection should run sequentially, with the next request starting only after the previous request completes.

Actual behavior

The Tracker and Illustrator agent requests are sent before either request completes. ArliAI permits only one parallel request, so the requests are rate-limited and the agents fall back to another model, significantly slowing post-processing.

Steps to reproduce

  1. Enable a Tracker agent and an Illustrator agent, or two agents that are not batched.
  2. Configure both agents to use the same OpenAI-compatible connection.
  3. Set Max Parallel Agent Jobs to 1 for that connection.
  4. Run a chat turn that triggers both agents.
  5. Check the API activity or console and observe that both requests start before either one returns output.
  6. Observe rate-limit errors and fallback model usage when the provider permits only one concurrent request.

Environment

  • Marinara Engine version: v2.4.2, build 771a1e2, Staging branch
  • Install type: other
  • OS + version: Windows 11
  • Browser or app shell: start.bat

Logs, screenshots, or video

No logs, screenshots, or video were provided. The reporter observed overlapping requests in the API activity or console.

Additional context

The affected provider is ArliAI, and the reporter's subscription allows one parallel request. Setting Max Parallel Agent Jobs to 0 was suggested, but the value automatically returns to 1. Using a different provider for one agent was suggested as a workaround. A maintainer stated they would investigate whether the Max Parallel Agent setting works correctly.

Discord thread: [BUG?] Open Ai Compatible Connection: Agents make parallel calls, causing rate-limiting -> FallBack
Discord thread link: https://discord.com/channels/1417099416812392641/1536836578964410419
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (11 messages)
[2026-08-11T20:39:53.468Z] ylliselmanii: Release: v2.4.2
Build: 771a1e2
Branch: Staging
Installation: Windows 11 through start.bat

So, as described in the Title, I've noticed that when I have the Illustrator Agent and Tracker Agents set up with the same connection, these don't get batched. That's by design, so I'm not talking about that. 

However, these two requests are made in parallel, despite the connection itself only having Max Parallel Agent Jobs: 1. 

This causes that specific provider (ArliAI) to error out, as my subscription there only gets one parallel request, causing both the tracker agent and illustrator to use the fallback model. 

That's not ideal, because it slows down the post-processing stuff crazily! Is that a bug? I think so, because that seems like parallel requests to me!

Thanks in advance

Steps to reproduce:
* uh... enable both a tracker agent and the illustrator agent (or any agents that don't get batched)
* Have them set up with the same connection
* Run a Chat turn where they both run at once
* Check the API/console and see that they are called at the same time, or at least before one has returned its output
[Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1536836578964410419]

[2026-08-11T21:02:16.607Z] Marinara: Change to 0
[Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1536842212497817672]

[2026-08-11T21:02:20.155Z] Marinara: see if it still happens
[Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1536842227379077130]

[2026-08-12T01:13:17.346Z] ylliselmanii: I don't think it accepts 0
[Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1536905381815525386]

[2026-08-12T01:13:25.899Z] ylliselmanii: Just autocorrects to 1
[Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1536905417689399406]

[2026-08-12T06:31:31.718Z] Marinara: You have to change the provider for one agent then.
[Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1536985469416374382]

[2026-08-12T06:31:41.991Z] Marinara: The pipeline works correctly.
[Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1536985512504463480]

[2026-08-12T06:32:31.401Z] Marinara: Tracker agents should be post anyway.
[Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1536985719745019976]

[2026-08-12T12:00:40.249Z] ylliselmanii: Okay, not trying to annoy you,  but isn't that still weird, wrong behaviour? They're all post, i know and agree, it's just that they do 2 parallel requests, (tracker and illustrator at the same time) causing rate limiting despite 'max parallel agent jobs' being 1? 

What's that field even doing then? 

Shouldn't they be done sequentially if they can't be batched?
[Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1537068300759076939]

[2026-08-12T12:21:58.710Z] Marinara: They are, your provider is just not tolerating that.
[Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1537073663013163078]

[2026-08-12T12:43:23.522Z] Marinara: I'll investigate whether the Max Parallel Agent setting works correctly.
[Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1537079051905400863]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4950 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Tracker and Illustrator agents using the same OpenAI-compatible connection appear to send requests concurrently despite Max Parallel Agent Jobs being set to 1. This triggers ArliAI rate limits and causes both agents to use the fallback model. ## Expected behavior When Max Parallel Agent Jobs is set to 1, unbatched agent requests using the same connection should run sequentially, with the next request starting only after the previous request completes. ## Actual behavior The Tracker and Illustrator agent requests are sent before either request completes. ArliAI permits only one parallel request, so the requests are rate-limited and the agents fall back to another model, significantly slowing post-processing. ## Steps to reproduce 1. Enable a Tracker agent and an Illustrator agent, or two agents that are not batched. 2. Configure both agents to use the same OpenAI-compatible connection. 3. Set Max Parallel Agent Jobs to 1 for that connection. 4. Run a chat turn that triggers both agents. 5. Check the API activity or console and observe that both requests start before either one returns output. 6. Observe rate-limit errors and fallback model usage when the provider permits only one concurrent request. ## Environment - Marinara Engine version: v2.4.2, build 771a1e2, Staging branch - Install type: other - OS + version: Windows 11 - Browser or app shell: start.bat ## Logs, screenshots, or video No logs, screenshots, or video were provided. The reporter observed overlapping requests in the API activity or console. ## Additional context The affected provider is ArliAI, and the reporter's subscription allows one parallel request. Setting Max Parallel Agent Jobs to 0 was suggested, but the value automatically returns to 1. Using a different provider for one agent was suggested as a workaround. A maintainer stated they would investigate whether the Max Parallel Agent setting works correctly. Discord thread: [BUG?] Open Ai Compatible Connection: Agents make parallel calls, causing rate-limiting -> FallBack Discord thread link: https://discord.com/channels/1417099416812392641/1536836578964410419 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (11 messages)</summary> ```text [2026-08-11T20:39:53.468Z] ylliselmanii: Release: v2.4.2 Build: 771a1e2 Branch: Staging Installation: Windows 11 through start.bat So, as described in the Title, I've noticed that when I have the Illustrator Agent and Tracker Agents set up with the same connection, these don't get batched. That's by design, so I'm not talking about that. However, these two requests are made in parallel, despite the connection itself only having Max Parallel Agent Jobs: 1. This causes that specific provider (ArliAI) to error out, as my subscription there only gets one parallel request, causing both the tracker agent and illustrator to use the fallback model. That's not ideal, because it slows down the post-processing stuff crazily! Is that a bug? I think so, because that seems like parallel requests to me! Thanks in advance Steps to reproduce: * uh... enable both a tracker agent and the illustrator agent (or any agents that don't get batched) * Have them set up with the same connection * Run a Chat turn where they both run at once * Check the API/console and see that they are called at the same time, or at least before one has returned its output [Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1536836578964410419] [2026-08-11T21:02:16.607Z] Marinara: Change to 0 [Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1536842212497817672] [2026-08-11T21:02:20.155Z] Marinara: see if it still happens [Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1536842227379077130] [2026-08-12T01:13:17.346Z] ylliselmanii: I don't think it accepts 0 [Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1536905381815525386] [2026-08-12T01:13:25.899Z] ylliselmanii: Just autocorrects to 1 [Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1536905417689399406] [2026-08-12T06:31:31.718Z] Marinara: You have to change the provider for one agent then. [Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1536985469416374382] [2026-08-12T06:31:41.991Z] Marinara: The pipeline works correctly. [Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1536985512504463480] [2026-08-12T06:32:31.401Z] Marinara: Tracker agents should be post anyway. [Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1536985719745019976] [2026-08-12T12:00:40.249Z] ylliselmanii: Okay, not trying to annoy you, but isn't that still weird, wrong behaviour? They're all post, i know and agree, it's just that they do 2 parallel requests, (tracker and illustrator at the same time) causing rate limiting despite 'max parallel agent jobs' being 1? What's that field even doing then? Shouldn't they be done sequentially if they can't be batched? [Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1537068300759076939] [2026-08-12T12:21:58.710Z] Marinara: They are, your provider is just not tolerating that. [Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1537073663013163078] [2026-08-12T12:43:23.522Z] Marinara: I'll investigate whether the Max Parallel Agent setting works correctly. [Discord message: https://discord.com/channels/1417099416812392641/1536836578964410419/1537079051905400863] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:54:23 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 12, 2026):

SpicyMarinara is taking this in the current assigned-issue sweep. I’m preparing a draft PR against staging and will link it here before implementation continues.

<!-- gh-comment-id:5267046948 --> @SpicyMarinara commented on GitHub (Aug 12, 2026): SpicyMarinara is taking this in the current assigned-issue sweep. I’m preparing a draft PR against `staging` and will link it here before implementation continues.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2750
No description provided.