ephraimbuddy commented on a change in pull request #15336:
URL: https://github.com/apache/airflow/pull/15336#discussion_r612417791
##########
File path: airflow/executors/kubernetes_executor.py
##########
@@ -218,6 +239,34 @@ def process_status(
resource_version,
)
+ def process_container_statuses(
+ self,
+ pod_id: str,
+ statuses: List[Any],
+ namespace: str,
+ annotations: Dict[str, str],
+ resource_version: str,
+ ):
+ """Monitor pod container statuses"""
+ for container_status in statuses:
+ terminated = container_status.state.terminated
+ waiting = container_status.state.waiting
+ if terminated:
+ self.log.debug(
+ "A container in the pod %s has terminated, reason: %s,
message: %s",
+ pod_id,
+ terminated.reason,
+ terminated.message,
+ )
+ self.watcher_queue.put((pod_id, namespace, State.FAILED,
annotations, resource_version))
Review comment:
> should we short-circuit and return here, since we want to mark a task
as Fail when any container in the POD fails right?
Absolutely!
--
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]