ashb commented on a change in pull request #5345: AIRFLOW-4594 Pod state might 
be different from task state. So don't c…
URL: https://github.com/apache/airflow/pull/5345#discussion_r288940735
 
 

 ##########
 File path: airflow/executors/kubernetes_executor.py
 ##########
 @@ -364,7 +364,7 @@ def process_status(self, pod_id, status, labels, 
resource_version):
             self.log.info('Event: %s Pending', pod_id)
         elif status == 'Failed':
             self.log.info('Event: %s Failed', pod_id)
-            self.watcher_queue.put((pod_id, State.FAILED, labels, 
resource_version))
 
 Review comment:
   I think this is too simplistic and will miss cases where the pod hard fails 
and hasn't updated the state (i.e. if it gets OOM killed) - likely this would 
end up leaving tasks in the running state.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to