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/08/02 13:44:09 UTC

[airflow] 14/22: Update best-practices.rst (#17357)

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

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

commit 358a1cca3fe4f514c57a2627dbff9855f473de3f
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Sat Jul 31 13:00:49 2021 +0200

    Update best-practices.rst (#17357)
    
    (cherry picked from commit d2a43f372962581aff5825c1c834cc6298b736be)
---
 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 b2ae4ae..9e89865 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
 ----------------