You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/04/04 17:12:59 UTC

[GitHub] [airflow] jedcunningham commented on issue #22684: Kubernetes client returns completed pod instead of running ones

jedcunningham commented on issue #22684:
URL: https://github.com/apache/airflow/issues/22684#issuecomment-1087807901

   Spotted the issue. We should apply the "already checked" label regardless of the pod state in `cleanup` (also in the `else`, not just in the `if`):
   
   https://github.com/apache/airflow/blob/436c17c655494eff5724df98d1a231ffa2142253/airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py#L407-L409
   
   @MioNok, you can also set `reattach_on_restart` if you want to ensure you get a new pod every time. It's definitely a sane way to approach things:
   https://github.com/apache/airflow/blob/436c17c655494eff5724df98d1a231ffa2142253/airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py#L101


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org