Skip to content

StopWorkflowRun

Source: src/AWS/MWAAServerless/StopWorkflowRun.ts

Runtime binding for airflow-serverless:StopWorkflowRun.

Stops an in-flight run of the bound Workflow. Provide the implementation with Effect.provide(AWS.MWAAServerless.StopWorkflowRunHttp).

// init — bind the operation to the workflow
const stopWorkflowRun = yield* AWS.MWAAServerless.StopWorkflowRun(workflow);
// runtime
const stopped = yield* stopWorkflowRun({ RunId: runId });
yield* Effect.log(`run ${stopped.RunId} -> ${stopped.Status}`);