The GitHub Actions job "Build Images" on airflow.git has succeeded.
Run started by GitHub user ryantam626 (triggered by ryantam626).

Head commit for run:
4e2407d6cc6ede62387d9b3c311c35daf53dcb85 / Ryan Tam <[email protected]>
Wait for xcom sidecar container to start before sidecar exec

According to k8s's docs on pod phase [1], "Running" state means "The Pod has 
been bound to a node,
and all of the containers have been created. At least one container is still 
running,
or is in the process of starting or restarting.".

This means there is no guarantee that the xcom sidecar container will have been
running by the time the `extract_com` is used by KPO's `execute` even if
we wait for pod to be a "Running" state - this further means if the base 
container
has completed before the xcom sidecar container is running, the entire
operator fails because you cannot exec against a non-running container.

Fix is to wait for the xcom sidecar container to be in the running state
before we exec against it, which this commit implements.

[1] - 
https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase
[2] - 
https://github.com/schattian/airflow/blob/86171ff43f8977021708cfa241da64f96c4c15e2/airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py#L398

Report URL: https://github.com/apache/airflow/actions/runs/2831278884

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to