Skip to content

Update /dap/submit endpoint to utilize the new AWS Batch pipeline submission#277

Merged
mehalter merged 1 commit into
mainfrom
aws_batch_pipeline_submit
Aug 20, 2025
Merged

Update /dap/submit endpoint to utilize the new AWS Batch pipeline submission#277
mehalter merged 1 commit into
mainfrom
aws_batch_pipeline_submit

Conversation

@mehalter
Copy link
Copy Markdown
Member

This updates the /dap/submit API endpoint to submit Nextflow jobs to the AWS Batch workflow job queue and return the created job information.

Testing

Make a POST request to https://api.cape-dev.org/capi-dev/dap/submit with the request body of:

{
  "pipelineName": "bactopia/bactopia",
  "pipelineVersion": "v3.0.1",
  "outputPath": "s3://ccd-dlh-t-genomics-result-raw-vbkt-s3-5d4efd2/pipeline-output",
  "nextflowOptions": "--max_cpus 8 --max_memory 24 --r1 s3://ccd-dlh-t-genomics-input-raw-vbkt-s3-b4b66f9/fastx/ERR10167837_1.fastq.gz --r2 s3://ccd-dlh-t-genomics-input-raw-vbkt-s3-b4b66f9/fastx/ERR10167837_2.fastq.gz --sample ERR10167837"
}

Verify you get a successful response back and check the workflow queue in AWS Batch to see if a job has started. (Optionally immediately kill the job so that we don't rack up charges, or watch the money burn)

…return job information rather than submitting to EC2
@mehalter mehalter merged commit b260565 into main Aug 20, 2025
6 checks passed
@mehalter mehalter deleted the aws_batch_pipeline_submit branch August 20, 2025 15:19
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