Skip to content

Commit

Permalink
Fix await_container_completion condition (apache#23883)
Browse files Browse the repository at this point in the history
  • Loading branch information
akakakakakaa committed Jun 6, 2022
1 parent b4a5783 commit 42abbf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/providers/cncf/kubernetes/utils/pod_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def consume_logs(*, since_time: Optional[DateTime] = None, follow: bool = True)
time.sleep(1)

def await_container_completion(self, pod: V1Pod, container_name: str) -> None:
while not self.container_is_running(pod=pod, container_name=container_name):
while self.container_is_running(pod=pod, container_name=container_name):
time.sleep(1)

def await_pod_completion(self, pod: V1Pod) -> V1Pod:
Expand Down

0 comments on commit 42abbf0

Please sign in to comment.