Skip to content

ListWorkflowRuns

Source: src/AWS/MWAAServerless/ListWorkflowRuns.ts

Runtime binding for airflow-serverless:ListWorkflowRuns.

Lists runs of the bound Workflow, optionally filtered to a specific workflow version. Provide the implementation with Effect.provide(AWS.MWAAServerless.ListWorkflowRunsHttp).

// init — bind the operation to the workflow
const listWorkflowRuns = yield* AWS.MWAAServerless.ListWorkflowRuns(workflow);
// runtime
const { WorkflowRuns } = yield* listWorkflowRuns({ MaxResults: 10 });
yield* Effect.log(`found ${WorkflowRuns?.length ?? 0} runs`);