Skip to content

KubernetesPodTrigger runs forever if non-base container in pod fails #66624

@ndellosa95

Description

@ndellosa95

Under which category would you file this issue?

Providers

Apache Airflow version

3.2.0

What happened and how to reproduce it?

KubernetesPodTrigger only looks at the state of the base container when polling for state instead of the state of the pod itself. If you include an init container and that container fails, the base container stays in waiting state forever and the trigger never completes.

What you think should happen instead?

The trigger should look at the overall state of the pod and complete when the pod moves to a terminal state.

Operating System

Not Applicable

Deployment

Astronomer

Apache Airflow Provider(s)

cncf-kubernetes

Versions of Apache Airflow Providers

10.16.1

Official Helm Chart version

Not Applicable

Kubernetes Version

Not Applicable

Helm Chart configuration

No response

Docker Image customizations

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions