Skip to content

fix(#46978) - kubernetes cleanup-pods CLI command only available in KubernetesExecutor #50270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chethanuk
Copy link
Contributor

fix(#46978) - kubernetes cleanup-pods CLI command only available in KubernetesExecutor

Error log when using Celery:

+ airflow-cleanup-29107800-sqlxx › airflow-cleanup-pods
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods [2025-05-05T18:00:08.641+0000] {stats.py:42} ERROR - Could not configure StatsClient: [Errno -3] Temporary failure in name resolution, using NoStatsLogger instead.
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods Usage: airflow [-h] GROUP_OR_COMMAND ...
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods Positional Arguments:
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods   GROUP_OR_COMMAND
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods     Groups
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       assets            Manage assets
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       backfill          Manage backfills
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       celery            Celery components
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       config            View configuration
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       connections       Manage connections
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       dags              Manage DAGs
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       db                Database operations
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       fab-db            Manage FAB
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       jobs              Manage jobs
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       pools             Manage pools
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       providers         Display providers
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       roles             Manage roles
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       tasks             Manage tasks
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       users             Manage users
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       variables         Manage variables
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods     Commands:
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       api-server        Start an Airflow API server instance
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       cheat-sheet       Display cheat sheet
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       dag-processor     Start a dag processor instance
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       info              Show information about current Airflow and environment
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       kerberos          Start a kerberos ticket renewer
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       plugins           Dump information about loaded plugins
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       rotate-fernet-key
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods                         Rotate encrypted connection credentials and variables
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       scheduler         Start a scheduler instance
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       standalone        Run an all-in-one copy of Airflow
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       sync-perm         Update permissions for existing roles and optionally
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods                         DAGs
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       triggerer         Start a triggerer instance
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods       version           Show the version
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods Options:
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods   -h, --help            show this help message and exit
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods
airflow-cleanup-29107800-sqlxx airflow-cleanup-pods airflow command error: argument GROUP_OR_COMMAND: invalid choice: 'kubernetes' (choose from api-server, assets, backfill, celery, cheat-sheet, config, connections, dag-processor, dags, db, fab-db, info, jobs, kerberos, plugins, pools, providers, roles, rotate-fernet-key, scheduler, standalone, sync-perm, tasks, triggerer, users, variables, version), see help above.

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added the area:helm-chart Airflow Helm Chart label May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:helm-chart Airflow Helm Chart
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant