Skip to content

Add MwaaServerlessDeleteWorkflowOperator#66891

Merged
o-nikolas merged 1 commit into
apache:mainfrom
kars0508:add-mwaa-serverless-delete-workflow-operator
May 15, 2026
Merged

Add MwaaServerlessDeleteWorkflowOperator#66891
o-nikolas merged 1 commit into
apache:mainfrom
kars0508:add-mwaa-serverless-delete-workflow-operator

Conversation

@kars0508
Copy link
Copy Markdown
Contributor

Add a new operator to delete Amazon MWAA Serverless workflows.

What

  • New MwaaServerlessDeleteWorkflowOperator with workflow_arn (required) and workflow_version (optional) parameters
  • Follows existing patterns from other AWS delete operators (no if_not_found — lets ResourceNotFoundException propagate)

Motivation

Completes the CRUD operator set for MWAA Serverless workflows. Previously, the system test used a @task-decorated function with raw boto3 for cleanup — this replaces it with a proper operator.

Why a separate operator

Each MWAA Serverless API action maps to its own operator, matching the established pattern for the other operators in this module (Create, Update, Start, Stop).

Files changed

  1. providers/amazon/src/airflow/providers/amazon/aws/operators/mwaa_serverless.py — new operator class
  2. providers/amazon/tests/unit/amazon/aws/operators/test_mwaa_serverless.py — unit tests
  3. providers/amazon/tests/system/amazon/aws/example_mwaa_serverless.py — system test updated to use the operator
  4. providers/amazon/docs/operators/mwaa_serverless.rst — documentation

Testing

  • Unit tests: all 18 pass locally
  • System test: full end-to-end pass on Cloud Desktop (create → start → wait → update → start → stop → delete → cleanup)

@kars0508 kars0508 marked this pull request as ready for review May 14, 2026 16:48
@kars0508 kars0508 requested a review from o-nikolas as a code owner May 14, 2026 16:48
Comment thread providers/amazon/tests/system/amazon/aws/example_mwaa_serverless.py
Comment thread providers/amazon/docs/operators/mwaa_serverless.rst Outdated
Comment thread providers/amazon/tests/system/amazon/aws/example_mwaa_serverless.py
@kars0508 kars0508 force-pushed the add-mwaa-serverless-delete-workflow-operator branch from 380cec3 to b230ff3 Compare May 14, 2026 21:01
@kars0508 kars0508 requested review from john-jac and o-nikolas May 14, 2026 23:34
@o-nikolas o-nikolas merged commit 25b9666 into apache:main May 15, 2026
94 checks passed
Nishieee pushed a commit to Nishieee/airflow that referenced this pull request May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants