Skip to content

Add on_kill method to KubernetesPodOperator #10383

@krisdock

Description

@krisdock

Description

Kubernetes Pods that are created by KubernetesPodOperator aren't deleted when a running task is killed/cleared from the Airflow UI. There's a known function (on_kill) that can be implemented to properly handle this scenario.

Use case / motivation

If a running Airflow task is killed, the associated Kubernetes Pod should ideally be deleted.

Related Issues

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions