Skip to content

GetJobRuns

Source: src/AWS/Glue/GetJobRuns.ts

Runtime binding for glue:GetJobRuns.

Lists the runs of the bound Job (newest first, paginated via NextToken), so a function can report run history or find in-flight runs. The job name is injected from the binding. Provide the implementation with Effect.provide(AWS.Glue.GetJobRunsHttp).

// init
const getJobRuns = yield* AWS.Glue.GetJobRuns(job);
// runtime
const { JobRuns } = yield* getJobRuns({ MaxResults: 10 });
const running = (JobRuns ?? []).filter(
(run) => run.JobRunState === "RUNNING",
);