Skip to content

Revert "feat(kubernetes): check state before deferring KubernetesPodOperatorAsync (#1104)" #1209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

pankajkoti
Copy link
Collaborator

@pankajkoti pankajkoti commented Jun 22, 2023

This reverts commit 89ccc7e.

PR #1104 adds logic to poke for Pod status before putting the status
check on deferral. However, it is observed that our DAG fails always
when we go on checking the status.phase on pods as Pod.status is None
before the pod gets scheduled on a node. So, in most scenarios it does
not make sense to check for the pod status immediately to verify that the
pod has completed its desired execution and hence, we revert this poke
in case of Kubernetes Pod operator.

closes: #1208

…peratorAsync (#1104)"

This reverts commit 89ccc7e.

PR #1104 adds logic to poke for Pod status before putting the status
check on deferral. However, it is observed that our DAG fails always
when we go on checking the status.phase on pods as Pod.status is None
before the pod gets scheduled on a None. So, in most scenarios it
does not make sense to check for the pod status immediately to verify
that the pod has completed it's desired execution and hence, we revert
this poke in case of Kubernetes Pod operator.
Copy link
Collaborator

@phanikumv phanikumv left a comment

Choose a reason for hiding this comment

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

Let's also remove retries from the corresponding integration DAG

@codecov
Copy link

codecov bot commented Jun 22, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01 ⚠️

Comparison is base (e3d3807) 98.59% compared to head (15c9549) 98.58%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1209      +/-   ##
==========================================
- Coverage   98.59%   98.58%   -0.01%     
==========================================
  Files          90       90              
  Lines        5395     5389       -6     
==========================================
- Hits         5319     5313       -6     
  Misses         76       76              
Impacted Files Coverage Δ
...viders/cncf/kubernetes/operators/kubernetes_pod.py 93.65% <100.00%> (-0.47%) ⬇️
...oviders/cncf/kubernetes/triggers/wait_container.py 98.63% <100.00%> (-0.02%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@pankajkoti pankajkoti merged commit 01dd2d1 into main Jun 22, 2023
@pankajkoti pankajkoti deleted the revert-pr-1104 branch June 22, 2023 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KubernetesPodOperatorAsync failing in astronomer-providers version :1.17.0
2 participants