Skip to content

ECS Executor retry task bug fix - #37979

Merged
eladkal merged 1 commit into
apache:mainfrom
aws-mwaa:syedahsn/aws_executors_ecs_bug_retry_fix
Mar 9, 2024
Merged

eladkal merged 1 commit into
apache:mainfrom
aws-mwaa:syedahsn/aws_executors_ecs_bug_retry_fix

Conversation

@syedahsn

@syedahsn syedahsn commented Mar 7, 2024 •

Copy link
Copy Markdown
Contributor

This PR addresses a bug in the ECS Executor where the executor did not attempt all queued tasks in one sync cycle if a task failed. This PR fixes the behaviour, and the ECS Executor now attempts all queued tasks exactly once per iteration, regardless of the state of the task. If a task fails to run (i.e. some Exception is thrown when calling run_task), it gets put back on the queued tasks list, and gets attempted in the next sync iteration. This continues until the maximum number of attempts for a task has been reached.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

…ailed.

Add unit tests to catch case where tasks fail
@boring-cyborg boring-cyborg Bot added area:providers provider:amazon AWS/Amazon - related issues labels Mar 7, 2024
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.

4 participants