Skip to content

BatchStopJobRun

Source: src/AWS/Glue/BatchStopJobRun.ts

Runtime binding for glue:BatchStopJobRun.

Stops one or more in-flight runs of the bound Job. Per-run failures come back in the response’s Errors list (the call itself succeeds), so inspect SuccessfulSubmissions/Errors rather than the error channel. The job name is injected from the binding. Provide the implementation with Effect.provide(AWS.Glue.BatchStopJobRunHttp).

// init
const batchStopJobRun = yield* AWS.Glue.BatchStopJobRun(job);
// runtime
const { SuccessfulSubmissions, Errors } = yield* batchStopJobRun({
JobRunIds: [runId],
});