Skip to content

Retry EKS resource deletion on transient ResourceInUseException#70260

Open
ramitkataria wants to merge 1 commit into
apache:mainfrom
aws-mwaa:ramitkataria/eks-delete-retry-resource-in-use
Open

Retry EKS resource deletion on transient ResourceInUseException#70260
ramitkataria wants to merge 1 commit into
apache:mainfrom
aws-mwaa:ramitkataria/eks-delete-retry-resource-in-use

Conversation

@ramitkataria

Copy link
Copy Markdown
Contributor

Deleting an EKS cluster, nodegroup, or Fargate profile can transiently fail with ResourceInUseException while the resource is still settling from a prior operation. The delete operators and the deferrable delete trigger surfaced that error immediately, failing the task and leaving the resource orphaned.

Both the synchronous operators and the async trigger now retry these deletes with exponential backoff until the resource settles, giving up and re-raising only after a bounded timeout so a genuinely wedged resource still fails.

With the operators handling this directly, the manual task-level retries in the EKS system test DAGs are no longer needed and are removed.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@ramitkataria
ramitkataria requested a review from o-nikolas as a code owner July 22, 2026 21:34
@boring-cyborg boring-cyborg Bot added area:providers provider:amazon AWS/Amazon - related issues labels Jul 22, 2026
@ramitkataria
ramitkataria marked this pull request as draft July 22, 2026 23:02
Deleting an EKS cluster, nodegroup, or Fargate profile can transiently
fail with ResourceInUseException while the resource is still settling
from a prior operation. The delete operators and the deferrable delete
trigger surfaced that error immediately, failing the task and leaving
the resource orphaned.

Both the synchronous operators and the async trigger now retry these
deletes with exponential backoff until the resource settles, giving up
and re-raising only after a bounded timeout so a genuinely wedged
resource still fails.

With the operators handling this directly, the manual task-level retries
in the EKS system test DAGs are no longer needed and are removed.
@ramitkataria
ramitkataria force-pushed the ramitkataria/eks-delete-retry-resource-in-use branch from c8aa0d2 to 5ff3634 Compare July 22, 2026 23:43
@ramitkataria
ramitkataria marked this pull request as ready for review July 22, 2026 23:50
@ramitkataria

Copy link
Copy Markdown
Contributor Author

CI will be fixed once #70224 is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants