Fix ECS Executor compatibility with Airflow 3.x in try_adopt_task_instances#62192
Merged
Conversation
…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.
5 tasks
try_adopt_task_instances
vincbeck
force-pushed
the
vincbeck/ecs_compat
branch
from
February 19, 2026 22:06
01327c7 to
727a839
Compare
o-nikolas
approved these changes
Feb 22, 2026
eladkal
approved these changes
Feb 22, 2026
This was referenced Feb 26, 2026
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>
75 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up of #58207.
Fixes #58205.
The
try_adopt_task_instancesmethod in the ECS Executor was callingti.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.