[AIRFLOW-6310] Group CLI commands in subcommands#6858
[AIRFLOW-6310] Group CLI commands in subcommands#6858mik-laj wants to merge 3 commits intoapache:masterfrom
Conversation
319bbf2 to
73536fd
Compare
|
I like the overall idea but what if we would like to add |
|
If we add a command then we will wonder how we will do it. For now, it does not promise that any such command would arise. Services are managed by specialized tools, e.g. systemd. Example configuration for systemd is available here: https://github.com/apache/airflow/tree/9dce1f0740f69af0ee86709a1a34a002b245aa3e/scripts/systemd |
|
I agree but at least lets try to be consistent, now we have: |
I think the above change is not needed and I am "-1" if we change it. |
|
The current CLI is a lot better (https://airflow.readthedocs.io/en/latest/cli-ref.html) than the ones in 1.10.x version https://airflow.readthedocs.io/en/1.10.6/cli.html We have grouped the commands and I think the current grouping is all that we need. |
|
Yeah I'm -0.5 on this too, as they are separate in what task each component permforms, and I "run x" isn't a pattern that I've seen with other CLIs |
|
What do you think about grouping celery commands under |
|
Good idea. I will create separate PR to start discussion. |
|
For the Knative executor we were thinking of having |
|
I created PR about celery command: |
|
I really like the "celery" , "native" hiding when particular executor is not configured more than having reused "worker" command. Especially that their use might be different. BTW. @ashb, @dimberman -> do you really want to follow the KNative route? I honestly do not see any benefits over the "native executor" proposal by @nuclearpinguin #6750. KNative one implements subset of the functionality of the "native executor" by adding many more components that are not really needed to get what we want (http server, knative, istio) without real benefit and with limitations introduced by KNative. The "native executor" has a chance to be the fastest, most reliable, easily scalable and simplest executor we can think about. I have not seen yet a single problem/limitation with this design. |

This is not finished PR. It is necessary to update the tests, but I decided to share it to get an opinion before investing more time. I would like to suggest that you group several commands to help users find the right command.
airflow kerberosairflow run kerberosairflow webserverairflow run webserverairflow schedulerairflow run schedulerairflow workerairflow run workerairflow flowerairflow run flowerairflow configairflow config showairflow rotate_fernet_keyairflow config rotate_fernet_keyAfter execution we will have only two clean commands in airflow (without subcomands):
Another suggestion is to use
airflow commandsinstead ofairflow run, but it will be much longer.Make sure you have checked all steps below.
Jira
Description
Tests
Commits
Documentation