[2/4] Add AWS Batch worker for distributed task execution#76
Closed
ericc59 wants to merge 7 commits into
Closed
Conversation
Implements the batch worker that runs inside AWS Batch containers to process individual ARC benchmark tasks. Integrates with the AWS infrastructure layer from PR 1/3. Core components: - BatchWorkerConfig: Loads configuration from environment variables (RUN_ID, TASK_ID, CONFIG_NAME, S3_BUCKET, DYNAMODB_* table names) - BatchWorker: Main orchestration class with lazy-loaded S3, DynamoDB, and rate limiter connections - GracefulShutdown: Signal handler for clean container termination Workflow: 1. Claim task atomically via DynamoDB conditional update 2. Load task data from S3 3. Execute test pairs with distributed rate limiting 4. Save submission to S3 5. Mark task completed/failed in DynamoDB Also includes: - Dockerfile for building the batch worker container image - AWS deployment artifacts (job definition, IAM policies, DynamoDB schemas) - Comprehensive test suite using moto for AWS mocking - CLI entry point: arc-batch-worker
- Add test script that sets up DynamoDB tables, S3 bucket, and task records in LocalStack, then runs the batch worker against it - Update aws/README.md with LocalStack testing instructions
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the AWS Batch worker that runs inside containers to process individual ARC benchmark tasks. This is PR 2/3 in the AWS integration series, building on the infrastructure layer from PR #74.
Core components:
BatchWorkerConfig: Loads configuration from environment variables (RUN_ID, TASK_ID, CONFIG_NAME, S3_BUCKET, DYNAMODB_* table names)BatchWorker: Main orchestration class with lazy-loaded S3, DynamoDB, and rate limiter connectionsGracefulShutdown: Signal handler for clean container terminationWorkflow:
Also includes:
Dockerfilefor building the batch worker container imageaws/directory (job definition, IAM policies, DynamoDB schemas)arc-batch-workerDependencies
infra-live-sandbox-teal(add-batch-module branch updated to pass DynamoDB table names)Test plan