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 11:01:07 UTC
[airflow] branch main updated: Update best-practices.rst (#17357)
This is an automated email from the ASF dual-hosted git repository.
potiuk 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 d2a43f3 Update best-practices.rst (#17357)
d2a43f3 is described below
commit d2a43f372962581aff5825c1c834cc6298b736be
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Sat Jul 31 13:00:49 2021 +0200
Update best-practices.rst (#17357)
---
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
----------------