You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2021/07/31 10:19:16 UTC

[airflow] branch potiuk-patch-1 created (now 6d27f06)

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

potiuk pushed a change to branch potiuk-patch-1
in repository https://gitbox.apache.org/repos/asf/airflow.git.


      at 6d27f06  Update best-practices.rst

This branch includes the following new commits:

     new 6d27f06  Update best-practices.rst

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[airflow] 01/01: Update best-practices.rst

Posted by po...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch potiuk-patch-1
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 6d27f069fef39db005975a77e500337700693141
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Sat Jul 31 12:19:01 2021 +0200

    Update best-practices.rst
---
 docs/apache-airflow/best-practices.rst | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/docs/apache-airflow/best-practices.rst b/docs/apache-airflow/best-practices.rst
index cb40f4c..79460b2 100644
--- a/docs/apache-airflow/best-practices.rst
+++ b/docs/apache-airflow/best-practices.rst
@@ -62,7 +62,9 @@ Some of the ways you can avoid producing a different result -
 .. tip::
 
     You should define repetitive parameters such as ``connection_id`` or S3 paths in ``default_args`` rather than declaring them for each task.
-    The ``default_args`` help to avoid mistakes such as typographical errors.
+    The ``default_args`` help to avoid mistakes such as typographical errors. Also, most connection types have unique parameter names in
+    tasks, so you can declare a connection only once in ``default_args`` (for example ``gcp_conn_id``) and it is automatically
+    used by all operators that use this connection type.
 
 Deleting a task
 ----------------