Skip to content

Commit

Permalink
Update best-practices.rst (#40505)
Browse files Browse the repository at this point in the history
- minor rephrase of example

(cherry picked from commit 5b2becb)
  • Loading branch information
simi authored and utkarsharma2 committed Jul 12, 2024
1 parent b3b78e8 commit 868e38b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/apache-airflow/best-practices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ Good example:
@task
def my_task():
var = Variable.get("foo") # this is fine, because func my_task called only run task, not scan DAGs.
var = Variable.get("foo") # This is ok since my_task is called only during task run, not during DAG scan.
print(var)
For security purpose, you're recommended to use the :ref:`Secrets Backend<secrets_backend_configuration>`
Expand Down

0 comments on commit 868e38b

Please sign in to comment.