mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-20 12:37:04 -04:00
[GH-ISSUE #298] Native flow queue/batch execution with configurable concurrency limit #95
Reference in New Issue
Block a user
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 @JAPACX on GitHub (May 4, 2026).
Original GitHub issue: https://github.com/vxcontrol/pentagi/issues/298
Originally assigned to: @asdek on GitHub.
Target Component
Core Services (Frontend UI/Backend API)
Enhancement Description
Problem
When integrating PentAGI into automated pipelines (e.g. weekly security reviews across multiple repositories), there is no way to control how many flows run concurrently. Calling createFlow N times in sequence starts all N flows immediately, spinning up N Kali Linux containers simultaneously and saturating host resources.
Currently the only workaround is implementing an external polling loop:
This adds significant complexity to any external orchestration layer.
Proposed Solution
Two complementary additions:
A simple cap on how many flows can be in active status simultaneously. Flows created beyond the cap would enter a queued status at the Flow level and be promoted automatically as slots free up.
A configurable WEBHOOK_URL that PentAGI calls with a POST when a flow transitions to completed or failed. This eliminates the need for external polling loops entirely.
Current Workaround
External batch orchestration via polling — functional but requires building and maintaining a custom polling loop outside PentAGI.
Use Case
Automated weekly security pipeline across 30+ repositories:
Technical Details
No response
Designs and Mockups
No response
Alternative Solutions
No response
Verification