Skip to content

GetJobRun

Source: src/AWS/EMRServerless/GetJobRun.ts

Runtime binding for emr-serverless:GetJobRun.

Reads a job run’s full detail on the bound Application — state, driver, resource utilization, timeout — so a function can poll a submitted job to completion or inspect why it failed. Provide the implementation with Effect.provide(AWS.EMRServerless.GetJobRunHttp).

// init
const getJobRun = yield* AWS.EMRServerless.GetJobRun(app);
// runtime
const { jobRun } = yield* getJobRun({ jobRunId });
yield* Effect.log(`${jobRun.jobRunId} is ${jobRun.state}`);