Skip to content

DescribeJobs

Source: src/AWS/Batch/DescribeJobs.ts

Describe submitted AWS Batch jobs (status polling from runtime code). batch:DescribeJobs has no resource-level IAM, so the policy is service-scoped; the queue anchors the binding’s identity.

const describeJobs = yield* Batch.DescribeJobs(queue);
const { jobs } = yield* describeJobs({ jobs: [jobId] });
const status = jobs?.[0]?.status;