Skip to content

Conversation

@o-nikolas
Copy link
Contributor

During Scheduler startup it calls start() on the configured Executor. Attempt an API call to ECS via the Boto client in this method to test the health of the ECS Executor. This will test most of the machinery of the executor (credentials, permissions, configuration, etc). If the check fails and the executor is unhealthy don't allow the scheduler to continue to start up, fail hard and message clearly to the user what is the issue.


^ 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.

@o-nikolas o-nikolas requested a review from eladkal as a code owner November 3, 2023 16:12
@boring-cyborg boring-cyborg bot added area:providers provider:amazon AWS/Amazon - related issues labels Nov 3, 2023
@potiuk
Copy link
Member

potiuk commented Nov 3, 2023

docs failing (the non-db test is likely flake)

@o-nikolas o-nikolas force-pushed the ferruzzi/ecs-executor-fail-early branch from ceeff8b to 53d7378 Compare November 3, 2023 21:34
@o-nikolas o-nikolas merged commit ae9a7b8 into apache:main Nov 3, 2023
@o-nikolas o-nikolas deleted the ferruzzi/ecs-executor-fail-early branch November 3, 2023 22:31
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Nov 10, 2023
During startup the Scheduler calls start() on the configured Executor.
Attempt an API call to ECS via the Boto client in this method to test the health of the ECS Executor.
This will test most of the machinery of the executor (credentials, permissions, configuration, etc).
If the check fails and the executor is unhealthy don't allow the scheduler to continue to start up, 
fail hard and message clearly to the user what is the issue.


---------

Co-authored-by: ferruzzi <ferruzzi@amazon.com>
Co-authored-by: Vincent <97131062+vincbeck@users.noreply.github.com>
@o-nikolas o-nikolas added the aws-ecs-executor Changes related to the AWS ECS Executor label Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers aws-ecs-executor Changes related to the AWS ECS Executor provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants