This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 76c8470047 AIP-69: Add leftover glue of all pieces to Edge Provider 
(#42051)
76c8470047 is described below

commit 76c84700476da07883ecdd4dbee0cc57bcf7e9ac
Author: Jens Scheffler <[email protected]>
AuthorDate: Fri Oct 18 02:17:00 2024 +0200

    AIP-69: Add leftover glue of all pieces to Edge Provider (#42051)
---
 docs/apache-airflow-providers-edge/cli-ref.rst     | 24 ++++++++++++++++++++++
 docs/apache-airflow-providers-edge/index.rst       |  1 +
 .../providers/edge/executors/edge_executor.py      |  3 ++-
 3 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/docs/apache-airflow-providers-edge/cli-ref.rst 
b/docs/apache-airflow-providers-edge/cli-ref.rst
new file mode 100644
index 0000000000..504d446c17
--- /dev/null
+++ b/docs/apache-airflow-providers-edge/cli-ref.rst
@@ -0,0 +1,24 @@
+ .. Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+ ..   http://www.apache.org/licenses/LICENSE-2.0
+
+ .. Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+Edge Executor Commands
+----------------------
+
+.. argparse::
+   :module: airflow.providers.edge.executors.edge_executor
+   :func: _get_parser
+   :prog: airflow
diff --git a/docs/apache-airflow-providers-edge/index.rst 
b/docs/apache-airflow-providers-edge/index.rst
index 9f456e8f89..36841578da 100644
--- a/docs/apache-airflow-providers-edge/index.rst
+++ b/docs/apache-airflow-providers-edge/index.rst
@@ -44,6 +44,7 @@
     :caption: References
 
     Configuration <configurations-ref>
+    CLI <cli-ref>
     Python API <_api/airflow/providers/edge/index>
     PyPI Repository <https://pypi.org/project/apache-airflow-providers-edge/>
     Installing from sources <installing-providers-from-sources>
diff --git a/providers/src/airflow/providers/edge/executors/edge_executor.py 
b/providers/src/airflow/providers/edge/executors/edge_executor.py
index f673e8fa6f..60f0a06acb 100644
--- a/providers/src/airflow/providers/edge/executors/edge_executor.py
+++ b/providers/src/airflow/providers/edge/executors/edge_executor.py
@@ -27,6 +27,7 @@ from airflow.configuration import conf
 from airflow.executors.base_executor import BaseExecutor
 from airflow.models.abstractoperator import DEFAULT_QUEUE
 from airflow.models.taskinstance import TaskInstanceState
+from airflow.providers.edge.cli.edge_command import EDGE_COMMANDS
 from airflow.providers.edge.models.edge_job import EdgeJobModel
 from airflow.providers.edge.models.edge_logs import EdgeLogsModel
 from airflow.providers.edge.models.edge_worker import EdgeWorkerModel
@@ -171,7 +172,7 @@ class EdgeExecutor(BaseExecutor):
                     "Start and manage Edge Worker. Works only when using 
EdgeExecutor. For more information, "
                     "see 
https://airflow.apache.org/docs/apache-airflow-providers-edge/stable/edge_executor.html";
                 ),
-                subcommands=[],
+                subcommands=EDGE_COMMANDS,
             ),
         ]
 

Reply via email to