Skip to content

ListTaskInstances

Source: src/AWS/MWAAServerless/ListTaskInstances.ts

Runtime binding for airflow-serverless:ListTaskInstances.

Lists the task instances of a run of the bound Workflow with their statuses and durations. Provide the implementation with Effect.provide(AWS.MWAAServerless.ListTaskInstancesHttp).

// init — bind the operation to the workflow
const listTaskInstances = yield* AWS.MWAAServerless.ListTaskInstances(workflow);
// runtime
const { TaskInstances } = yield* listTaskInstances({ RunId: runId });
for (const task of TaskInstances ?? []) {
yield* Effect.log(`${task.TaskInstanceId}: ${task.Status}`);
}