ood-aws-batch-adapter

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 3 Imported by: 0

README

ood-aws-batch-adapter

CI Go Report Card codecov Go Reference

OOD compute adapter for AWS Batch. Translates Open OnDemand job submissions to AWS Batch API calls.

Commands

Command Description
submit Submit an OOD job spec (JSON from stdin) to AWS Batch
status <job-id> Get OOD-normalized status of a Batch job
delete <job-id> Terminate a Batch job
info <job-id> Print full Batch job details as JSON

Usage

# Submit a job (OOD job spec on stdin)
echo '{"job_name":"myjob","script":"#!/bin/bash\necho hello"}' | \
  ood-aws-batch-adapter submit --queue ood-test --region us-east-1

# Check status
ood-aws-batch-adapter status <job-id>

# Terminate
ood-aws-batch-adapter delete <job-id>

OOD Cluster Config

# /etc/ood/config/clusters.d/aws-batch.yml
---
v2:
  metadata:
    title: "AWS Batch"
  job:
    adapter: "adapter_script"
    submit_host: "localhost"
    submit:
      script: "/usr/local/lib/ood-adapters/ood-aws-batch-adapter"
      args:
        - submit
        - "--queue=arn:aws:batch:us-east-1:123456789012:job-queue/ood-test"
        - "--region=us-east-1"

Infrastructure

Terraform in aws-openondemand with adapters_enabled = ["batch"] provisions:

  • AWS Batch compute environment (SPOT, up to 256 vCPUs)
  • Job queue ood-<env>
  • IAM policy on the OOD instance role

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
awscfg
Package awscfg builds the AWS config option set shared by the adapter commands.
Package awscfg builds the AWS config option set shared by the adapter commands.
batch
Package batch wraps the AWS Batch API for the OOD adapter.
Package batch wraps the AWS Batch API for the OOD adapter.
ood
Package ood defines the OOD job spec types shared across adapters.
Package ood defines the OOD job spec types shared across adapters.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL