GetJobRun
Source:
src/AWS/Glue/GetJobRun.ts
Runtime binding for glue:GetJobRun.
Reads the metadata of a single run of the bound Job — its
JobRunState (RUNNING, SUCCEEDED, FAILED, TIMEOUT, …), timings,
and error message — so a function can poll a run it started to a terminal
state. The job name is injected from the binding. Provide the
implementation with Effect.provide(AWS.Glue.GetJobRunHttp).
Running Jobs
Section titled “Running Jobs”// initconst getJobRun = yield* AWS.Glue.GetJobRun(job);
// runtimeconst { JobRun } = yield* getJobRun({ RunId: runId });if (JobRun?.JobRunState === "FAILED") { yield* Effect.logError(JobRun.ErrorMessage ?? "run failed");}