From 7990b0442310d62b009cf620cbc4a562dcb90781 Mon Sep 17 00:00:00 2001 From: Ruben Laguna Date: Tue, 1 Nov 2022 19:45:43 +0100 Subject: [PATCH] Fix BaseOperator link (#27441) (cherry picked from commit 8829e999077040248ab302faa76897915430bfd3) --- docs/apache-airflow/executor/celery.rst | 2 +- docs/apache-airflow/python-api-ref.rst | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/apache-airflow/executor/celery.rst b/docs/apache-airflow/executor/celery.rst index f61cff47ad41c..a904b2d1f48ef 100644 --- a/docs/apache-airflow/executor/celery.rst +++ b/docs/apache-airflow/executor/celery.rst @@ -182,7 +182,7 @@ Two databases are also available: During this process, two 2 process are created: - LocalTaskJobProcess - It logic is described by LocalTaskJob. It is monitoring RawTaskProcess. New processes are started using TaskRunner. -- RawTaskProcess - It is process with the user code e.g. :meth:`~airflow.models.BaseOperator.execute`. +- RawTaskProcess - It is process with the user code e.g. :meth:`~airflow.models.baseoperator.BaseOperator.execute`. | [1] **SchedulerProcess** processes the tasks and when it finds a task that needs to be done, sends it to the **QueueBroker**. | [2] **SchedulerProcess** also begins to periodically query **ResultBackend** for the status of the task. diff --git a/docs/apache-airflow/python-api-ref.rst b/docs/apache-airflow/python-api-ref.rst index dc04c6a93b9f9..9e385f846dee4 100644 --- a/docs/apache-airflow/python-api-ref.rst +++ b/docs/apache-airflow/python-api-ref.rst @@ -31,7 +31,7 @@ The DAG is Airflow's core model that represents a recurring workflow. Check out Operators --------- Operators allow for generation of certain types of tasks that become nodes in -the DAG when instantiated. All operators derive from :class:`~airflow.models.BaseOperator` and +the DAG when instantiated. All operators derive from :class:`~airflow.models.baseoperator.BaseOperator` and inherit many attributes and methods that way. There are 3 main types of operators: @@ -47,16 +47,16 @@ There are 3 main types of operators: BaseOperator '''''''''''' -All operators are derived from :class:`~airflow.models.BaseOperator` and acquire much +All operators are derived from :class:`~airflow.models.baseoperator.BaseOperator` and acquire much functionality through inheritance. Since this is the core of the engine, -it's worth taking the time to understand the parameters of :class:`~airflow.models.BaseOperator` +it's worth taking the time to understand the parameters of :class:`~airflow.models.baseoperator.BaseOperator` to understand the primitive features that can be leveraged in your DAGs. BaseSensorOperator '''''''''''''''''' All sensors are derived from :class:`~airflow.sensors.base.BaseSensorOperator`. All sensors inherit -the :attr:`~airflow.sensors.base.BaseSensorOperator.timeout` and :attr:`~airflow.sensors.base.BaseSensorOperator.poke_interval` on top of the :class:`~airflow.models.BaseOperator` +the :attr:`~airflow.sensors.base.BaseSensorOperator.timeout` and :attr:`~airflow.sensors.base.BaseSensorOperator.poke_interval` on top of the :class:`~airflow.models.baseoperator.BaseOperator` attributes. Operators packages