mik-laj commented on a change in pull request #13502:
URL: https://github.com/apache/airflow/pull/13502#discussion_r552504057
##########
File path: docs/apache-airflow/best-practices.rst
##########
@@ -228,11 +228,36 @@ Do not hard code values inside the DAG and then change
them manually according t
You can use environment variables to parameterize the DAG.
-.. code-block::
+.. code-block:: python
+
+ import os
+
+ dest = os.environ.get(
+ "MY_DAG_DEST_PATH",
+ "s3://default-target/path/"
+ )
+
+Mocking variables and connections
+=================================
+
Review comment:
I think this is useful for the end user. I've seen similar questions on
Slack many times, including once yesterday. See:
https://apache-airflow.slack.com/archives/CSS36QQS1/p1609874991010700
I have added some context in which cases, this can be helpful.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]