Skip to content

GetTransformerJob

Source: src/AWS/B2BI/GetTransformerJob.ts

Runtime binding for b2bi:GetTransformerJob.

Polls the status of an asynchronous transformer job started with StartTransformerJobstatus progresses from running to succeeded (with outputFiles) or failed (with message). Provide the implementation with Effect.provide(AWS.B2BI.GetTransformerJobHttp).

// init — grants b2bi:GetTransformerJob on the transformer
const getTransformerJob = yield* AWS.B2BI.GetTransformerJob(transformer);
// runtime
const job = yield* getTransformerJob({ transformerJobId }).pipe(
Effect.repeat({
schedule: Schedule.spaced("2 seconds"),
until: (job) => job.status !== "running",
times: 30,
}),
);