Skip to content

GetJobBookmark

Source: src/AWS/Glue/GetJobBookmark.ts

Runtime binding for glue:GetJobBookmark.

Reads the bound Job’s bookmark entry — the incremental-processing checkpoint Glue keeps when a job runs with --job-bookmark-option job-bookmark-enable. Fails with the typed EntityNotFoundException when the job has never recorded a bookmark. The job name is injected from the binding. Provide the implementation with Effect.provide(AWS.Glue.GetJobBookmarkHttp).

// init
const getJobBookmark = yield* AWS.Glue.GetJobBookmark(job);
// runtime
const entry = yield* getJobBookmark().pipe(
Effect.map((r) => r.JobBookmarkEntry),
Effect.catchTag("EntityNotFoundException", () =>
Effect.succeed(undefined),
),
);