You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by sh...@apache.org on 2026/05/01 09:43:08 UTC
(airflow) branch main updated: Align Dag capitalization from "DAG" to "Dag" for providers/google/ (#66155)
This is an automated email from the ASF dual-hosted git repository.
shahar1 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 07fba0bb487 Align Dag capitalization from "DAG" to "Dag" for providers/google/ (#66155)
07fba0bb487 is described below
commit 07fba0bb4872765a1c3a7bde5b1c41bb46c3cab3
Author: hojeong park <pa...@gmail.com>
AuthorDate: Fri May 1 18:43:00 2026 +0900
Align Dag capitalization from "DAG" to "Dag" for providers/google/ (#66155)
---
providers/google/docs/message-queues/index.rst | 4 +--
.../google/docs/operators/cloud/cloud_composer.rst | 8 ++---
.../providers/google/cloud/hooks/cloud_composer.py | 26 +++++++-------
.../providers/google/cloud/hooks/datafusion.py | 4 +--
.../providers/google/cloud/operators/bigquery.py | 4 +--
.../google/cloud/operators/cloud_composer.py | 10 +++---
.../providers/google/cloud/operators/dataflow.py | 2 +-
.../providers/google/cloud/operators/dataproc.py | 2 +-
.../providers/google/cloud/operators/gcs.py | 2 +-
.../providers/google/cloud/operators/pubsub.py | 6 ++--
.../google/cloud/sensors/cloud_composer.py | 40 +++++++++++-----------
.../google/cloud/triggers/cloud_composer.py | 6 ++--
.../google/cloud/utils/field_validator.py | 4 +--
.../unit/google/cloud/hooks/test_datafusion.py | 14 ++++----
14 files changed, 66 insertions(+), 66 deletions(-)
diff --git a/providers/google/docs/message-queues/index.rst b/providers/google/docs/message-queues/index.rst
index 93f4c1a5e65..fe763999a18 100644
--- a/providers/google/docs/message-queues/index.rst
+++ b/providers/google/docs/message-queues/index.rst
@@ -47,7 +47,7 @@ Inherited from :class:`~airflow.providers.common.messaging.triggers.msg_queue.Me
Wait for a message in a queue
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Below is an example of how you can configure an Airflow DAG to be triggered by a message in Pub/Sub.
+Below is an example of how you can configure an Airflow Dag to be triggered by a message in Pub/Sub.
.. exampleinclude:: /../tests/system/google/event_scheduling/example_event_schedule_pubsub.py
:language: python
@@ -63,7 +63,7 @@ How it works
The ``AssetWatcher`` associate a trigger with a name. This name helps you identify which trigger is associated to which
asset.
-3. **Event-Driven DAG**: Instead of running on a fixed schedule, the DAG executes when the asset receives an update
+3. **Event-Driven Dag**: Instead of running on a fixed schedule, the Dag executes when the asset receives an update
(e.g., a new message in the queue).
For how to use the trigger, refer to the documentation of the
diff --git a/providers/google/docs/operators/cloud/cloud_composer.rst b/providers/google/docs/operators/cloud/cloud_composer.rst
index 8a95c3d9121..d02e19b26df 100644
--- a/providers/google/docs/operators/cloud/cloud_composer.rst
+++ b/providers/google/docs/operators/cloud/cloud_composer.rst
@@ -212,10 +212,10 @@ or you can define the same sensor in the deferrable mode:
:start-after: [START howto_sensor_dag_run_deferrable_mode]
:end-before: [END howto_sensor_dag_run_deferrable_mode]
-Trigger a DAG run
+Trigger a Dag run
-----------------
-You can trigger a DAG in another Composer environment, use:
+You can trigger a Dag in another Composer environment, use:
:class:`~airflow.providers.google.cloud.operators.cloud_composer.CloudComposerTriggerDAGRunOperator`
.. exampleinclude:: /../../google/tests/system/google/cloud/composer/example_cloud_composer.py
@@ -224,10 +224,10 @@ You can trigger a DAG in another Composer environment, use:
:start-after: [START howto_operator_trigger_dag_run]
:end-before: [END howto_operator_trigger_dag_run]
-Waits for a different DAG, task group, or task to complete
+Waits for a different Dag, task group, or task to complete
----------------------------------------------------------
-You can use sensor that waits for a different DAG, task group, or task to complete for a specific composer environment, use:
+You can use sensor that waits for a different Dag, task group, or task to complete for a specific composer environment, use:
:class:`~airflow.providers.google.cloud.sensors.cloud_composer.CloudComposerExternalTaskSensor`
.. exampleinclude:: /../../google/tests/system/google/cloud/composer/example_cloud_composer.py
diff --git a/providers/google/src/airflow/providers/google/cloud/hooks/cloud_composer.py b/providers/google/src/airflow/providers/google/cloud/hooks/cloud_composer.py
index d690f0901d1..aa1991f792c 100644
--- a/providers/google/src/airflow/providers/google/cloud/hooks/cloud_composer.py
+++ b/providers/google/src/airflow/providers/google/cloud/hooks/cloud_composer.py
@@ -457,12 +457,12 @@ class CloudComposerHook(GoogleBaseHook, OperationHelper):
timeout: float | None = None,
) -> dict:
"""
- Trigger DAG run for provided Apache Airflow Web UI hosted within Composer environment.
+ Trigger Dag run for provided Apache Airflow Web UI hosted within Composer environment.
:param composer_airflow_uri: The URI of the Apache Airflow Web UI hosted within Composer environment.
- :param composer_dag_id: The ID of DAG which will be triggered.
+ :param composer_dag_id: The ID of Dag which will be triggered.
:param composer_airflow_version: The version of Apache Airflow.
- :param composer_dag_conf: Configuration parameters for the DAG run.
+ :param composer_dag_conf: Configuration parameters for the Dag run.
:param timeout: The timeout for this request.
"""
resource_path = f"/api/{self.get_airflow_rest_api_version(composer_airflow_version)}/dags/{composer_dag_id}/dagRuns"
@@ -492,10 +492,10 @@ class CloudComposerHook(GoogleBaseHook, OperationHelper):
timeout: float | None = None,
) -> dict:
"""
- Get the list of dag runs for provided DAG.
+ Get the list of dag runs for provided Dag.
:param composer_airflow_uri: The URI of the Apache Airflow Web UI hosted within Composer environment.
- :param composer_dag_id: The ID of DAG.
+ :param composer_dag_id: The ID of Dag.
:param composer_airflow_version: The version of Apache Airflow.
:param timeout: The timeout for this request.
"""
@@ -509,7 +509,7 @@ class CloudComposerHook(GoogleBaseHook, OperationHelper):
if response.status_code != 200:
self.log.error(
- "Failed to get DAG runs for dag_id=%s from %s (status=%s): %s",
+ "Failed to get Dag runs for dag_id=%s from %s (status=%s): %s",
composer_dag_id,
composer_airflow_uri,
response.status_code,
@@ -528,10 +528,10 @@ class CloudComposerHook(GoogleBaseHook, OperationHelper):
timeout: float | None = None,
) -> dict:
"""
- Get the list of task instances for provided DAG.
+ Get the list of task instances for provided Dag.
:param composer_airflow_uri: The URI of the Apache Airflow Web UI hosted within Composer environment.
- :param composer_dag_id: The ID of DAG.
+ :param composer_dag_id: The ID of Dag.
:param composer_airflow_version: The version of Apache Airflow.
:query_parameters: Query parameters for this request.
:param timeout: The timeout for this request.
@@ -879,10 +879,10 @@ class CloudComposerAsyncHook(GoogleBaseAsyncHook):
timeout: float | None = None,
) -> dict:
"""
- Get the list of dag runs for provided DAG.
+ Get the list of dag runs for provided Dag.
:param composer_airflow_uri: The URI of the Apache Airflow Web UI hosted within Composer environment.
- :param composer_dag_id: The ID of DAG.
+ :param composer_dag_id: The ID of Dag.
:param composer_airflow_version: The version of Apache Airflow.
:param timeout: The timeout for this request.
"""
@@ -896,7 +896,7 @@ class CloudComposerAsyncHook(GoogleBaseAsyncHook):
if response_status_code != 200:
self.log.error(
- "Failed to get DAG runs for dag_id=%s from %s (status=%s): %s",
+ "Failed to get Dag runs for dag_id=%s from %s (status=%s): %s",
composer_dag_id,
composer_airflow_uri,
response_status_code,
@@ -915,10 +915,10 @@ class CloudComposerAsyncHook(GoogleBaseAsyncHook):
timeout: float | None = None,
) -> dict:
"""
- Get the list of task instances for provided DAG.
+ Get the list of task instances for provided Dag.
:param composer_airflow_uri: The URI of the Apache Airflow Web UI hosted within Composer environment.
- :param composer_dag_id: The ID of DAG.
+ :param composer_dag_id: The ID of Dag.
:param composer_airflow_version: The version of Apache Airflow.
:query_parameters: Query parameters for this request.
:param timeout: The timeout for this request.
diff --git a/providers/google/src/airflow/providers/google/cloud/hooks/datafusion.py b/providers/google/src/airflow/providers/google/cloud/hooks/datafusion.py
index ff2f4e42c0e..65e717da2f0 100644
--- a/providers/google/src/airflow/providers/google/cloud/hooks/datafusion.py
+++ b/providers/google/src/airflow/providers/google/cloud/hooks/datafusion.py
@@ -179,7 +179,7 @@ class DataFusionHook(GoogleBaseHook):
if not response:
raise RequestException(
"Invalid / Empty response received. Please, check for possible root "
- "causes of this behavior either in DAG code or on Cloud DataFusion side"
+ "causes of this behavior either in Dag code or on Cloud DataFusion side"
)
if response.status == 404:
raise HTTPError(message)
@@ -190,7 +190,7 @@ class DataFusionHook(GoogleBaseHook):
if response.data is None:
raise ValueError(
"Empty response received. Please, check for possible root "
- "causes of this behavior either in DAG code or on Cloud DataFusion side"
+ "causes of this behavior either in Dag code or on Cloud DataFusion side"
)
def get_conn(self) -> Resource:
diff --git a/providers/google/src/airflow/providers/google/cloud/operators/bigquery.py b/providers/google/src/airflow/providers/google/cloud/operators/bigquery.py
index c00dc2cebc5..280ae79422b 100644
--- a/providers/google/src/airflow/providers/google/cloud/operators/bigquery.py
+++ b/providers/google/src/airflow/providers/google/cloud/operators/bigquery.py
@@ -174,9 +174,9 @@ class BigQueryCheckOperator(
deviation for the 7-day average.
This operator can be used as a data quality check in your pipeline.
- Depending on where you put it in your DAG, you have the choice to stop the
+ Depending on where you put it in your Dag, you have the choice to stop the
critical path, preventing from publishing dubious data, or on the side and
- receive email alerts without stopping the progress of the DAG.
+ receive email alerts without stopping the progress of the Dag.
:param sql: SQL to execute.
:param gcp_conn_id: Connection ID for Google Cloud.
diff --git a/providers/google/src/airflow/providers/google/cloud/operators/cloud_composer.py b/providers/google/src/airflow/providers/google/cloud/operators/cloud_composer.py
index 80281cede49..43372c30905 100644
--- a/providers/google/src/airflow/providers/google/cloud/operators/cloud_composer.py
+++ b/providers/google/src/airflow/providers/google/cloud/operators/cloud_composer.py
@@ -843,13 +843,13 @@ class CloudComposerRunAirflowCLICommandOperator(GoogleCloudBaseOperator):
class CloudComposerTriggerDAGRunOperator(GoogleCloudBaseOperator):
"""
- Trigger DAG run for provided Composer environment.
+ Trigger Dag run for provided Composer environment.
:param project_id: The ID of the Google Cloud project that the service belongs to.
:param region: The ID of the Google Cloud region that the service belongs to.
:param environment_id: The ID of the Google Cloud environment that the service belongs to.
- :param composer_dag_id: The ID of DAG which will be triggered.
- :param composer_dag_conf: Configuration parameters for the DAG run.
+ :param composer_dag_id: The ID of Dag which will be triggered.
+ :param composer_dag_conf: Configuration parameters for the Dag run.
:param timeout: The timeout for this request.
:param gcp_conn_id: The connection ID used to connect to Google Cloud Platform.
:param impersonation_chain: Optional service account to impersonate using short-term
@@ -914,7 +914,7 @@ class CloudComposerTriggerDAGRunOperator(GoogleCloudBaseOperator):
)
self.log.info(
- "Triggering the DAG %s on the %s environment...", self.composer_dag_id, self.environment_id
+ "Triggering the Dag %s on the %s environment...", self.composer_dag_id, self.environment_id
)
dag_run = hook.trigger_dag_run(
composer_airflow_uri=composer_airflow_uri,
@@ -923,6 +923,6 @@ class CloudComposerTriggerDAGRunOperator(GoogleCloudBaseOperator):
composer_airflow_version=composer_airflow_version,
timeout=self.timeout,
)
- self.log.info("The DAG %s was triggered with Run ID: %s", self.composer_dag_id, dag_run["dag_run_id"])
+ self.log.info("The Dag %s was triggered with Run ID: %s", self.composer_dag_id, dag_run["dag_run_id"])
return dag_run
diff --git a/providers/google/src/airflow/providers/google/cloud/operators/dataflow.py b/providers/google/src/airflow/providers/google/cloud/operators/dataflow.py
index c24116f0761..ac71404000e 100644
--- a/providers/google/src/airflow/providers/google/cloud/operators/dataflow.py
+++ b/providers/google/src/airflow/providers/google/cloud/operators/dataflow.py
@@ -288,7 +288,7 @@ class DataflowTemplatedJobStartOperator(GoogleCloudBaseOperator):
templated, so you can use variables in them.
Note that ``dataflow_default_options`` is expected to save high-level options
- for project information, which apply to all dataflow operators in the DAG.
+ for project information, which apply to all dataflow operators in the Dag.
.. seealso::
https://cloud.google.com/dataflow/docs/reference/rest/v1b3
diff --git a/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py b/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py
index 2348c61f285..86c67d2bf00 100644
--- a/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py
+++ b/providers/google/src/airflow/providers/google/cloud/operators/dataproc.py
@@ -2378,7 +2378,7 @@ class DataprocCreateBatchOperator(GoogleCloudBaseOperator):
:param retry: A retry object used to retry requests. If ``None`` is specified, requests will not be
retried.
:param result_retry: Result retry object used to retry requests. Is used to decrease delay between
- executing chained tasks in a DAG by specifying exact amount of seconds for executing.
+ executing chained tasks in a Dag by specifying exact amount of seconds for executing.
:param timeout: The amount of time, in seconds, to wait for the request to complete. Note that if
``retry`` is specified, the timeout applies to each individual attempt.
:param metadata: Additional metadata that is provided to the method.
diff --git a/providers/google/src/airflow/providers/google/cloud/operators/gcs.py b/providers/google/src/airflow/providers/google/cloud/operators/gcs.py
index c69898bc7f8..6d9eb2aa6a9 100644
--- a/providers/google/src/airflow/providers/google/cloud/operators/gcs.py
+++ b/providers/google/src/airflow/providers/google/cloud/operators/gcs.py
@@ -829,7 +829,7 @@ class GCSTimeSpanFileTransformOperator(GoogleCloudBaseOperator):
timespan_start = orig_start
if orig_start >= orig_end: # Airflow 2.2 sets start == end for non-perodic schedules.
- self.log.warning("DAG schedule not periodic, setting timespan end to max %s", orig_end)
+ self.log.warning("Dag schedule not periodic, setting timespan end to max %s", orig_end)
timespan_end = pendulum.instance(datetime.datetime.max)
else:
timespan_end = orig_end
diff --git a/providers/google/src/airflow/providers/google/cloud/operators/pubsub.py b/providers/google/src/airflow/providers/google/cloud/operators/pubsub.py
index f4dae4165cc..97fd870a7f1 100644
--- a/providers/google/src/airflow/providers/google/cloud/operators/pubsub.py
+++ b/providers/google/src/airflow/providers/google/cloud/operators/pubsub.py
@@ -65,7 +65,7 @@ class PubSubCreateTopicOperator(GoogleCloudBaseOperator):
:ref:`howto/operator:PubSubCreateTopicOperator`
By default, if the topic already exists, this operator will
- not cause the DAG to fail. ::
+ not cause the Dag to fail. ::
with DAG("successful DAG") as dag:
create_topic = PubSubCreateTopicOperator(project_id="my-project", topic="my_new_topic")
@@ -202,7 +202,7 @@ class PubSubCreateSubscriptionOperator(GoogleCloudBaseOperator):
Subscription can be created in a different project from its topic.
By default, if the subscription already exists, this operator will
- not cause the DAG to fail. However, the topic must exist in the project. ::
+ not cause the Dag to fail. However, the topic must exist in the project. ::
with DAG("successful DAG") as dag:
create_subscription = PubSubCreateSubscriptionOperator(
@@ -431,7 +431,7 @@ class PubSubDeleteTopicOperator(GoogleCloudBaseOperator):
:ref:`howto/operator:PubSubDeleteTopicOperator`
By default, if the topic does not exist, this operator will
- not cause the DAG to fail. ::
+ not cause the Dag to fail. ::
with DAG("successful DAG") as dag:
PubSubDeleteTopicOperator(project_id="my-project", topic="non_existing_topic")
diff --git a/providers/google/src/airflow/providers/google/cloud/sensors/cloud_composer.py b/providers/google/src/airflow/providers/google/cloud/sensors/cloud_composer.py
index 0378a5fe290..713fc3d8ea3 100644
--- a/providers/google/src/airflow/providers/google/cloud/sensors/cloud_composer.py
+++ b/providers/google/src/airflow/providers/google/cloud/sensors/cloud_composer.py
@@ -61,9 +61,9 @@ class CloudComposerDAGRunSensor(BaseSensorOperator):
:param project_id: Required. The ID of the Google Cloud project that the service belongs to.
:param region: Required. The ID of the Google Cloud region that the service belongs to.
:param environment_id: The name of the Composer environment.
- :param composer_dag_id: The ID of executable DAG.
+ :param composer_dag_id: The ID of executable Dag.
:param allowed_states: Iterable of allowed states, default is ``['success']``.
- :param execution_range: execution DAGs time range. Sensor checks DAGs states only for DAGs which were
+ :param execution_range: execution Dags time range. Sensor checks Dags states only for Dags which were
started in this time range. For yesterday, use [positive!] datetime.timedelta(days=1).
For future, use [negative!] datetime.timedelta(days=-1). For specific time, use list of
datetimes [datetime(2024,3,22,11,0,0), datetime(2024,3,22,12,0,0)].
@@ -198,7 +198,7 @@ class CloudComposerDAGRunSensor(BaseSensorOperator):
composer_airflow_uri = environment.config.airflow_uri
self.log.info(
- "Pulling the DAG %s runs from the %s environment...",
+ "Pulling the Dag %s runs from the %s environment...",
self.composer_dag_id,
self.environment_id,
)
@@ -272,7 +272,7 @@ class CloudComposerDAGRunSensor(BaseSensorOperator):
def execute_complete(self, context: Context, event: dict):
if event and event["status"] == "error":
raise AirflowException(event["message"])
- self.log.info("DAG %s has executed successfully.", self.composer_dag_id)
+ self.log.info("Dag %s has executed successfully.", self.composer_dag_id)
@cached_property
def hook(self) -> CloudComposerHook:
@@ -284,10 +284,10 @@ class CloudComposerDAGRunSensor(BaseSensorOperator):
class CloudComposerExternalTaskSensor(BaseSensorOperator):
"""
- Waits for a different DAG, task group, or task to complete for a specific composer environment.
+ Waits for a different Dag, task group, or task to complete for a specific composer environment.
If both `composer_external_task_group_id` and `composer_external_task_id` are ``None`` (default), the sensor
- waits for the DAG.
+ waits for the Dag.
Values for `composer_external_task_group_id` and `composer_external_task_id` can't be set at the same time.
By default, the CloudComposerExternalTaskSensor will wait for the external task to
@@ -328,7 +328,7 @@ class CloudComposerExternalTaskSensor(BaseSensorOperator):
:param composer_external_task_id: The task_id that contains the task you want to
wait for. (templated)
:param composer_external_task_ids: The list of task_ids that you want to wait for. (templated)
- If ``None`` (default value) the sensor waits for the DAG. Either
+ If ``None`` (default value) the sensor waits for the Dag. Either
composer_external_task_id or composer_external_task_ids can be passed to
CloudComposerExternalTaskSensor, but not both.
:param composer_external_task_group_id: The task_group_id that contains the task you want to
@@ -336,7 +336,7 @@ class CloudComposerExternalTaskSensor(BaseSensorOperator):
:param allowed_states: Iterable of allowed states, default is ``['success']``
:param skipped_states: Iterable of states to make this task mark as skipped, default is ``None``
:param failed_states: Iterable of failed or dis-allowed states, default is ``None``
- :param execution_range: execution DAGs time range. Sensor checks DAGs states only for DAGs which were
+ :param execution_range: execution Dags time range. Sensor checks Dags states only for Dags which were
started in this time range. For yesterday, use [positive!] datetime.timedelta(days=1).
For future, use [negative!] datetime.timedelta(days=-1). For specific time, use list of
datetimes [datetime(2024,3,22,11,0,0), datetime(2024,3,22,12,0,0)].
@@ -522,7 +522,7 @@ class CloudComposerExternalTaskSensor(BaseSensorOperator):
composer_airflow_uri = environment.config.airflow_uri
self.log.info(
- "Pulling the DAG '%s' task instances from the '%s' environment...",
+ "Pulling the Dag '%s' task instances from the '%s' environment...",
self.composer_external_dag_id,
self.environment_id,
)
@@ -591,27 +591,27 @@ class CloudComposerExternalTaskSensor(BaseSensorOperator):
if self.soft_fail:
raise AirflowSkipException(
f"Some of the external tasks '{self.composer_external_task_ids}' "
- f"in DAG '{self.composer_external_dag_id}' failed. Skipping due to soft_fail."
+ f"in Dag '{self.composer_external_dag_id}' failed. Skipping due to soft_fail."
)
raise ExternalTaskFailedError(
f"Some of the external tasks '{self.composer_external_task_ids}' "
- f"in DAG '{self.composer_external_dag_id}' failed."
+ f"in Dag '{self.composer_external_dag_id}' failed."
)
if self.composer_external_task_group_id:
if self.soft_fail:
raise AirflowSkipException(
f"The external task_group '{self.composer_external_task_group_id}' "
- f"in DAG '{self.composer_external_dag_id}' failed. Skipping due to soft_fail."
+ f"in Dag '{self.composer_external_dag_id}' failed. Skipping due to soft_fail."
)
raise ExternalTaskGroupFailedError(
f"The external task_group '{self.composer_external_task_group_id}' "
- f"in DAG '{self.composer_external_dag_id}' failed."
+ f"in Dag '{self.composer_external_dag_id}' failed."
)
if self.soft_fail:
raise AirflowSkipException(
- f"The external DAG '{self.composer_external_dag_id}' failed. Skipping due to soft_fail."
+ f"The external Dag '{self.composer_external_dag_id}' failed. Skipping due to soft_fail."
)
- raise ExternalDagFailedError(f"The external DAG '{self.composer_external_dag_id}' failed.")
+ raise ExternalDagFailedError(f"The external Dag '{self.composer_external_dag_id}' failed.")
def _handle_skipped_states(self, skipped_status: bool) -> None:
"""Handle skipped states and raise appropriate exceptions."""
@@ -619,15 +619,15 @@ class CloudComposerExternalTaskSensor(BaseSensorOperator):
if self.composer_external_task_ids:
raise AirflowSkipException(
f"Some of the external tasks '{self.composer_external_task_ids}' "
- f"in DAG '{self.composer_external_dag_id}' reached a state in our states-to-skip-on list. Skipping."
+ f"in Dag '{self.composer_external_dag_id}' reached a state in our states-to-skip-on list. Skipping."
)
if self.composer_external_task_group_id:
raise AirflowSkipException(
f"The external task_group '{self.composer_external_task_group_id}' "
- f"in DAG '{self.composer_external_dag_id}' reached a state in our states-to-skip-on list. Skipping."
+ f"in Dag '{self.composer_external_dag_id}' reached a state in our states-to-skip-on list. Skipping."
)
raise AirflowSkipException(
- f"The external DAG '{self.composer_external_dag_id}' reached a state in our states-to-skip-on list. "
+ f"The external Dag '{self.composer_external_dag_id}' reached a state in our states-to-skip-on list. "
"Skipping."
)
@@ -661,7 +661,7 @@ class CloudComposerExternalTaskSensor(BaseSensorOperator):
and not self.composer_external_task_ids
):
self.log.info(
- "Poking for DAG '%s' on Composer environment '%s' ... ",
+ "Poking for Dag '%s' on Composer environment '%s' ... ",
self.composer_external_dag_id,
self.environment_id,
)
@@ -699,7 +699,7 @@ class CloudComposerExternalTaskSensor(BaseSensorOperator):
elif event and event["status"] == "skipped":
self._handle_skipped_states(True)
- self.log.info("External tasks for DAG '%s' has executed successfully.", self.composer_external_dag_id)
+ self.log.info("External tasks for Dag '%s' has executed successfully.", self.composer_external_dag_id)
@cached_property
def hook(self) -> CloudComposerHook:
diff --git a/providers/google/src/airflow/providers/google/cloud/triggers/cloud_composer.py b/providers/google/src/airflow/providers/google/cloud/triggers/cloud_composer.py
index 1d69ea0b690..040e35f2a38 100644
--- a/providers/google/src/airflow/providers/google/cloud/triggers/cloud_composer.py
+++ b/providers/google/src/airflow/providers/google/cloud/triggers/cloud_composer.py
@@ -176,7 +176,7 @@ class CloudComposerAirflowCLICommandTrigger(BaseTrigger):
class CloudComposerDAGRunTrigger(BaseTrigger):
- """The trigger wait for the DAG run completion."""
+ """The trigger wait for the Dag run completion."""
def __init__(
self,
@@ -249,7 +249,7 @@ class CloudComposerDAGRunTrigger(BaseTrigger):
composer_airflow_uri = environment.config.airflow_uri
self.log.info(
- "Pulling the DAG %s runs from the %s environment...",
+ "Pulling the Dag %s runs from the %s environment...",
self.composer_dag_id,
self.environment_id,
)
@@ -407,7 +407,7 @@ class CloudComposerExternalTaskTrigger(BaseTrigger):
composer_airflow_uri = environment.config.airflow_uri
self.log.info(
- "Pulling the DAG '%s' task instances from the '%s' environment...",
+ "Pulling the Dag '%s' task instances from the '%s' environment...",
self.composer_external_dag_id,
self.environment_id,
)
diff --git a/providers/google/src/airflow/providers/google/cloud/utils/field_validator.py b/providers/google/src/airflow/providers/google/cloud/utils/field_validator.py
index 6af336ec081..79df7ee130c 100644
--- a/providers/google/src/airflow/providers/google/cloud/utils/field_validator.py
+++ b/providers/google/src/airflow/providers/google/cloud/utils/field_validator.py
@@ -23,11 +23,11 @@ is sent in the API request to Google Cloud (via ``googleclient`` API usually).
Context
-------
-The specification mostly focuses on helping Airflow DAG developers in the development
+The specification mostly focuses on helping Airflow Dag developers in the development
phase. You can build your own Google Cloud operator (such as GcfDeployOperator for example) which
can have built-in validation specification for the particular API. It's super helpful
when developer plays with different fields and their values at the initial phase of
-DAG development. Most of the Google Cloud APIs perform their own validation on the
+Dag development. Most of the Google Cloud APIs perform their own validation on the
server side, but most of the requests are asynchronous and you need to wait for result
of the operation. This takes precious times and slows
down iteration over the API. BodyFieldValidator is meant to be used on the client side
diff --git a/providers/google/tests/unit/google/cloud/hooks/test_datafusion.py b/providers/google/tests/unit/google/cloud/hooks/test_datafusion.py
index 87d9f2d7b46..ad7404c3a11 100644
--- a/providers/google/tests/unit/google/cloud/hooks/test_datafusion.py
+++ b/providers/google/tests/unit/google/cloud/hooks/test_datafusion.py
@@ -229,7 +229,7 @@ class TestDataFusionHook:
with pytest.raises(
ValueError,
match=r"Empty response received. Please, check for possible root causes "
- r"of this behavior either in DAG code or on Cloud DataFusion side",
+ r"of this behavior either in Dag code or on Cloud DataFusion side",
):
hook.create_pipeline(pipeline_name=PIPELINE_NAME, pipeline=PIPELINE, instance_url=INSTANCE_URL)
mock_request.assert_called_once_with(
@@ -266,7 +266,7 @@ class TestDataFusionHook:
with pytest.raises(
ValueError,
match=r"Empty response received. Please, check for possible root causes "
- r"of this behavior either in DAG code or on Cloud DataFusion side",
+ r"of this behavior either in Dag code or on Cloud DataFusion side",
):
hook.delete_pipeline(pipeline_name=PIPELINE_NAME, instance_url=INSTANCE_URL)
mock_request.assert_called_once_with(
@@ -321,7 +321,7 @@ class TestDataFusionHook:
with pytest.raises(
ValueError,
match=r"Empty response received. Please, check for possible root causes "
- r"of this behavior either in DAG code or on Cloud DataFusion side",
+ r"of this behavior either in Dag code or on Cloud DataFusion side",
):
hook.list_pipelines(instance_url=INSTANCE_URL)
mock_request.assert_called_once_with(
@@ -415,7 +415,7 @@ class TestDataFusionHook:
with pytest.raises(
ValueError,
match=r"Empty response received. Please, check for possible root causes "
- r"of this behavior either in DAG code or on Cloud DataFusion side",
+ r"of this behavior either in Dag code or on Cloud DataFusion side",
):
hook.start_pipeline(
pipeline_name=PIPELINE_NAME, instance_url=INSTANCE_URL, runtime_args=RUNTIME_ARGS
@@ -482,7 +482,7 @@ class TestDataFusionHook:
with pytest.raises(
ValueError,
match=r"Empty response received. Please, check for possible root causes "
- r"of this behavior either in DAG code or on Cloud DataFusion side",
+ r"of this behavior either in Dag code or on Cloud DataFusion side",
):
hook.stop_pipeline(pipeline_name=PIPELINE_NAME, instance_url=INSTANCE_URL)
mock_request.assert_called_once_with(
@@ -498,7 +498,7 @@ class TestDataFusionHook:
with pytest.raises(
ValueError,
match=r"Empty response received. Please, check for possible root causes "
- r"of this behavior either in DAG code or on Cloud DataFusion side",
+ r"of this behavior either in Dag code or on Cloud DataFusion side",
):
hook.stop_pipeline(
pipeline_name=PIPELINE_NAME,
@@ -559,7 +559,7 @@ class TestDataFusionHook:
with pytest.raises(
ValueError,
match=r"Empty response received. Please, check for possible root causes "
- r"of this behavior either in DAG code or on Cloud DataFusion side",
+ r"of this behavior either in Dag code or on Cloud DataFusion side",
):
hook.get_pipeline_workflow(
pipeline_name=PIPELINE_NAME, instance_url=INSTANCE_URL, pipeline_id=PIPELINE_ID