<#4332 [BUG] Flyte tasks may fail if containerStat...
# flyte-github
a
#4332 [BUG] Flyte tasks may fail if containerStatus is not present for primary container fast enough Issue created by hamersaw Describe the bug The DeterminePrimaryContainerPhase function fails if the primary container name is not found in the
containerStatuses
field on the k8s pod. However, in scenarios where the k8s api server is under heavy load the
containerStatuses
field may not be fully populated even though the container does actually exist in the Pod. Before falling back to a permanent failure of the container is not found in the
containerStatuses
field, we should check if it exists in the
container
field first. Expected behavior Flyte should wait until the
containerStatuses
field is populated with the primary container name. Additional context to reproduce No response Screenshots No response Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte