Skip to content

Fix ECS Executor compatibility with Airflow 3.x in try_adopt_task_instances#62192

Merged
eladkal merged 2 commits into
apache:mainfrom
aws-mwaa:vincbeck/ecs_compat
Feb 22, 2026
Merged

Fix ECS Executor compatibility with Airflow 3.x in try_adopt_task_instances#62192
eladkal merged 2 commits into
apache:mainfrom
aws-mwaa:vincbeck/ecs_compat

Conversation

@vincbeck

Copy link
Copy Markdown
Contributor

Follow-up of #58207.
Fixes #58205.

The try_adopt_task_instances method in the ECS Executor was calling ti.command_as_list() which doesn't exist in Airflow 3.x due to Task SDK changes. This caused the scheduler to crash with AttributeError when trying to adopt orphaned ECS tasks.

…tances

The try_adopt_task_instances method was calling ti.command_as_list() which
doesn't exist in Airflow 3.x due to Task SDK changes. This caused scheduler
to crash with AttributeError when trying to adopt orphaned ECS tasks.
@vincbeck
vincbeck requested a review from o-nikolas as a code owner February 19, 2026 21:19
@boring-cyborg boring-cyborg Bot added area:providers provider:amazon AWS/Amazon - related issues labels Feb 19, 2026
@vincbeck vincbeck changed the title Vincbeck/ecs compat Fix ECS Executor compatibility with Airflow 3.x in try_adopt_task_instances Feb 19, 2026
@vincbeck vincbeck changed the title Fix ECS Executor compatibility with Airflow 3.x in try_adopt_task_instances Fix ECS Executor compatibility with Airflow 3.x in try_adopt_task_instances Feb 19, 2026
@vincbeck
vincbeck force-pushed the vincbeck/ecs_compat branch from 01327c7 to 727a839 Compare February 19, 2026 22:06
@eladkal
eladkal merged commit 36b9c0f into apache:main Feb 22, 2026
90 checks passed
@vincbeck
vincbeck deleted the vincbeck/ecs_compat branch March 3, 2026 20:31
dominikhei pushed a commit to dominikhei/airflow that referenced this pull request Mar 11, 2026
…stances` (apache#62192)

* Fix ECS Executor compatibility with Airflow 3.x in try_adopt_task_instances

The try_adopt_task_instances method was calling ti.command_as_list() which
doesn't exist in Airflow 3.x due to Task SDK changes. This caused scheduler
to crash with AttributeError when trying to adopt orphaned ECS tasks.

* Fix ECS Executor compatibility with Airflow 3.x in try_adopt_task_instances

---------

Co-authored-by: iamapez <alexander@tradepost.co>
Ankurdeewan pushed a commit to Ankurdeewan/airflow that referenced this pull request Mar 15, 2026
…stances` (apache#62192)

* Fix ECS Executor compatibility with Airflow 3.x in try_adopt_task_instances

The try_adopt_task_instances method was calling ti.command_as_list() which
doesn't exist in Airflow 3.x due to Task SDK changes. This caused scheduler
to crash with AttributeError when trying to adopt orphaned ECS tasks.

* Fix ECS Executor compatibility with Airflow 3.x in try_adopt_task_instances

---------

Co-authored-by: iamapez <alexander@tradepost.co>
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.

ECS Executor in apache-airflow-providers-amazon 9.16.0 incompatible with Airflow 3.x - calls removed method command_as_list()

4 participants