Skip to content

Conversation

@vincbeck
Copy link
Contributor

Fix EksPodOperator when run in deferrable mode. The method trigger_reentry uses the variable instance config_file but this one might not be defined. The method trigger_reentry is executed when the task is resumed and can be executed in a different machine than the one which executed the execute method.


^ 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 airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added area:providers provider:amazon AWS/Amazon - related issues provider:cncf-kubernetes Kubernetes (k8s) provider related issues labels May 30, 2025
Copy link
Contributor

@o-nikolas o-nikolas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to add some unit tests?

@vincbeck
Copy link
Contributor Author

vincbeck commented Jun 2, 2025

Is it possible to add some unit tests?

I'll try, I am not sure I'll be able to reproduce it with a unit test but I'll give it a shot

@vincbeck
Copy link
Contributor Author

vincbeck commented Jun 2, 2025

Is it possible to add some unit tests?

I'll try, I am not sure I'll be able to reproduce it with a unit test but I'll give it a shot

There was no test to cover the trigger_reentry method, I added one

@vincbeck vincbeck force-pushed the vincbeck/fix_eks branch from f255500 to 1f47443 Compare June 2, 2025 15:18
@vincbeck vincbeck force-pushed the vincbeck/fix_eks branch from 1f47443 to a9ed784 Compare June 2, 2025 17:40
@vincbeck vincbeck force-pushed the vincbeck/fix_eks branch from f97e215 to 4aefb08 Compare June 3, 2025 12:45
@vincbeck
Copy link
Contributor Author

vincbeck commented Jun 3, 2025

Failure unrelated to the PR, merging

@vincbeck vincbeck merged commit 541f600 into apache:main Jun 3, 2025
76 of 77 checks passed
@vincbeck vincbeck deleted the vincbeck/fix_eks branch June 3, 2025 13:30
sanederchik pushed a commit to sanederchik/airflow that referenced this pull request Jun 7, 2025
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 provider:cncf-kubernetes Kubernetes (k8s) provider related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants