Re: [I] `kubernetes cleanup-pods` CLI command only available when using KubernetesExecutor [airflow]
jason810496 closed issue #46978: `kubernetes cleanup-pods` CLI command only available when using KubernetesExecutor URL: https://github.com/apache/airflow/issues/46978 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] `kubernetes cleanup-pods` CLI command only available when using KubernetesExecutor [airflow]
jason810496 commented on issue #46978: URL: https://github.com/apache/airflow/issues/46978#issuecomment-3845014634 This issue should be resolved by https://github.com/apache/airflow/pull/59805. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] `kubernetes cleanup-pods` CLI command only available when using KubernetesExecutor [airflow]
jason810496 commented on issue #46978: URL: https://github.com/apache/airflow/issues/46978#issuecomment-2680295342 > There is also a problem with performance - potentially. Currenlty the list of commands available is built partially dynamically basd on configured executor - and that means that ProvidersManager and PluginsManager and discovery of avaialble providers, Hooks, Connections etc. does not have to be done when CLI methods are parsed. > > And that also means that for example `airflow --help` - and any other command - might take much longer - even 100-200 ms is a lot for those. Not sure how to address it easily though. Thanks for highlighting the potential performance issue! I will run benchmarks after adding the `CliDefinitionLoader` to measure both the overhead of adding _provider-module-level CLI definitions_ and the speedup gained by splitting out CLI definitions. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] `kubernetes cleanup-pods` CLI command only available when using KubernetesExecutor [airflow]
potiuk commented on issue #46978: URL: https://github.com/apache/airflow/issues/46978#issuecomment-2679446808 > Paging [@potiuk](https://github.com/potiuk) - you probably have thoughts or opinions on this. > > High level, sounds good. Tradeoffs moving it out of the executor and authmanager interface though. Having it there is nice in some ways, authors don't need to do conditionals on their own. There is also a problem with performance - potentially. Currenlty the list of commands available is built partially dynamically basd on configured executor - and that means that ProvidersManager and PluginsManager and discovery of avaialble providers, Hooks, Connections etc. does not have to be done when CLI methods are parsed. And that also means that for example `airflow --help` - and any other command - might take much longer - even 100-200 ms is a lot for those. Not sure how to address it easily though. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] `kubernetes cleanup-pods` CLI command only available when using KubernetesExecutor [airflow]
jedcunningham commented on issue #46978: URL: https://github.com/apache/airflow/issues/46978#issuecomment-2679268173 Paging @potiuk - you probably have thoughts or opinions on this. High level, sounds good. Tradeoffs moving it out of the executor and authmanager interface though. Having it there is nice in some ways, authors don't need to do conditionals on their own. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] `kubernetes cleanup-pods` CLI command only available when using KubernetesExecutor [airflow]
jason810496 commented on issue #46978: URL: https://github.com/apache/airflow/issues/46978#issuecomment-2677349327 Hi @jedcunningham, I think we could introduce a `CliDefinitionLoader` class, following the same approach as `ExecutorLoader`. Currently, only `AuthManager.get_cli_commands()` and `Executor.get_cli_commands()` are called and extended in `cli_parser`: https://github.com/apache/airflow/blob/4c031cb855f455c94eb91c6be3adeec638a9d3d7/airflow/cli/cli_parser.py#L39-L87 By introducing `CliDefinitionLoader`, we can extend `cli_parser` to support provider module-level CLI commands. Here is a rough POC of `CliDefinitionLoader`: https://github.com/apache/airflow/compare/main...jason810496:airflow:refactor/add-cli-definition-loader-poc?expand=1 Additionally, as a next step, we could decouple the `get_cli_commands` method from both `Executor` and `AuthManager`. This would address the root cause of the current CLI slowdown and potentially improve CLI performance by 3–4x, as shown in the benchmark: https://github.com/apache/airflow/issues/46789. Would love to hear your thoughts on this approach! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] `kubernetes cleanup-pods` CLI command only available when using KubernetesExecutor [airflow]
jason810496 commented on issue #46978: URL: https://github.com/apache/airflow/issues/46978#issuecomment-2676174027 Hi @jedcunningham I can work on this issue, could you assign to me ? Thanks ! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
