Skip to content

Bug/set max batch jobs#386

Merged
bedanley merged 3 commits into
developfrom
bug/set-max-batch-jobs
Sep 8, 2025
Merged

Bug/set max batch jobs#386
bedanley merged 3 commits into
developfrom
bug/set-max-batch-jobs

Conversation

@bedanley
Copy link
Copy Markdown
Contributor

@bedanley bedanley commented Sep 8, 2025

This PR addresses two issues in the RAG ingestion pipeline:

AWS Batch IP Exhaustion Prevention: Adds dynamic calculation of maxvCpus based on available subnet IPs to prevent compute environment failures. Without the max parallel jobs set, too many jobs submitted will exhaust the available IPs for a given subnet (default 64) and fail to start.

EventBridge Rule Dependency Management: Fixes race conditions where EventBridge rules were created before Lambda function parameters were available. As a result, updated lambdas dealing with RAG will break pipeline ingestion due to missing lambda ARN.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@bedanley bedanley changed the base branch from main to develop September 8, 2025 16:49
@bedanley bedanley marked this pull request as ready for review September 8, 2025 16:55
@bedanley bedanley force-pushed the bug/set-max-batch-jobs branch from 4157a06 to fdf9c3f Compare September 8, 2025 17:20
Comment thread lib/rag/state_machine/legacy-ingest-pipeline.ts Outdated
@bedanley bedanley force-pushed the bug/set-max-batch-jobs branch from fdf9c3f to 6e980ea Compare September 8, 2025 19:22
@bedanley bedanley merged commit 3c017b8 into develop Sep 8, 2025
8 checks passed
@bedanley bedanley deleted the bug/set-max-batch-jobs branch September 8, 2025 19:50
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.

3 participants