AWS Batch
Submit a new AWS Batch job
Changed onCreates and submits a new job to AWS Batch with the provided configuration
post/api/containers/batch/job
Request
- The document declares no server URL.
- AuthsocaAuth (a scheme the document does not define) and socaToken (a scheme the document does not define)
Headers
X-EDH-USERstring required
SOCA username for authentication
X-EDH-TOKENstring required
SOCA authentication token
Request body application/x-www-form-urlencoded
Example request
{
"job_name": "my-batch-job",
"job_definition": "arn:aws:batch:us-east-1:123456789012:job-definition/my-def:1",
"job_queue": "arn:aws:batch:us-east-1:123456789012:job-queue/my-queue",
"job_dependencies": "job-id-1,job-id-2",
"array_size": "10",
"overrideCommands": "[\"python\", \"train.py\", \"--epochs\", \"10\"]",
"envVars": "[{\"name\": \"MY_ENV\", \"value\": \"Hello\"}]",
"scheduling_priority": "100",
"job_attempts": "3",
"execution_timeout": "3600",
"vcpus": "1",
"memory": "2",
"consumableResources": "[{\"type\": \"GPU\", \"value\": \"1\"}, {\"type\": \"FPGA\", \"value\": \"2\"}]"
}Response
Job submitted successfully
Example response
{
"success": true,
"message": "Job my-batch-job submitted successfully. Job ID: a1b2c3d4"
}Changes
- info
the endpoint scheme security
socaAuth AND socaTokenwas added to the API - info
the endpoint scheme security
edhAuth AND edhTokenwas removed from the API
- info
- info
endpoint added
- info