Skip to content

SubmitJob

Source: src/AWS/Batch/SubmitJob.ts

Submit a job to an AWS Batch job queue against a bound job definition — fire-and-forget heavy work from a Lambda or Task.

const submitJob = yield* Batch.SubmitJob(queue, jobDef);
const { jobId } = yield* submitJob({
jobName: "nightly-export",
containerOverrides: { command: ["echo", "hello"] },
});