GetTransformerJob
Source:
src/AWS/B2BI/GetTransformerJob.ts
Runtime binding for b2bi:GetTransformerJob.
Polls the status of an asynchronous transformer job started with
StartTransformerJob — status progresses from running to
succeeded (with outputFiles) or failed (with message). Provide the
implementation with Effect.provide(AWS.B2BI.GetTransformerJobHttp).
Running Transformer Jobs
Section titled “Running Transformer Jobs”// init — grants b2bi:GetTransformerJob on the transformerconst getTransformerJob = yield* AWS.B2BI.GetTransformerJob(transformer);
// runtimeconst job = yield* getTransformerJob({ transformerJobId }).pipe( Effect.repeat({ schedule: Schedule.spaced("2 seconds"), until: (job) => job.status !== "running", times: 30, }),);