Skip to content

feat: remove pipeline depth cap — scales with deployment count - #131

Merged
therealaleph merged 1 commit into
therealaleph:mainfrom
vahidlazio:feat/uncap-pipeline-depth
Apr 24, 2026
Merged

therealaleph merged 1 commit into
therealaleph:mainfrom
vahidlazio:feat/uncap-pipeline-depth

Conversation

@vahidlazio

Copy link
Copy Markdown
Contributor

Remove artificial pipeline depth cap

Pipeline depth was hard-capped at 12 regardless of how many deployments the user configured. Users with 20+ deployments across multiple accounts were wasting pipeline capacity.

Change

// Before
const MAX_PIPELINE_DEPTH: usize = 12;
pipeline_depth = num_scripts.clamp(2, 12);

// After
pipeline_depth = num_scripts.max(2);  // no upper cap

The connection pool (POOL_MAX=80) is the natural ceiling — nobody's deploying 80 scripts.

Updated docs (EN + FA)

  • Removed "clamped to 2..12" references
  • Added row for 20 deployments in the performance table
  • tunnel-node README updated

🤖 Generated with Claude Code

Pipeline depth was artificially capped at 12. Users with 20+
deployments across multiple accounts were wasting pipeline capacity.

Now: pipeline_depth = num_scripts (minimum 2, no upper cap).
The connection pool (80) is the natural ceiling.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@vahidlazio vahidlazio mentioned this pull request Apr 24, 2026
@therealaleph

Copy link
Copy Markdown
Owner

Reviewed locally — clean change, behaviorally sound.

Verified:

  • Merged against current main (post-Feature/youtube sni relay #117 + v1.2.14), only README.md needed auto-merge, no conflicts
  • cargo test --lib = 82/82 passes
  • Pool ceiling math checks out: POOL_MAX=80 is the natural upper bound, and nobody's running 80+ deployments in practice
  • Docs updated symmetrically — EN + FA both reflect the new "minimum 2, no upper cap" wording, and the table extension to a 20-deployment row is a useful addition for users running multi-account setups
  • tunnel-node/README.md updated too — nice catch

The cap was always a leftover guess rather than a measured limit, so removing it for users who consciously configure more deployments is the right move. The Apps Script per-account rate limits remain the real ceiling either way, and that's not something we can or should enforce client-side.

Merging. Thanks!


[reply via Anthropic Claude | reviewed by @therealaleph]

@therealaleph
therealaleph merged commit 97f6407 into therealaleph:main Apr 24, 2026
therealaleph added a commit that referenced this pull request Apr 25, 2026
feat: remove pipeline depth cap — scales with deployment count
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.

2 participants