Skip to content

GetWorkflowRun

Source: src/AWS/MWAAServerless/GetWorkflowRun.ts

Runtime binding for airflow-serverless:GetWorkflowRun.

Reads the detail of a single run of the bound Workflow — its status, timings, error message, and task-instance ids. Provide the implementation with Effect.provide(AWS.MWAAServerless.GetWorkflowRunHttp).

// init — bind the operation to the workflow
const getWorkflowRun = yield* AWS.MWAAServerless.GetWorkflowRun(workflow);
// runtime
const run = yield* getWorkflowRun({ RunId: runId });
yield* Effect.log(`run ${run.RunId}: ${run.RunDetail?.RunState}`);