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
  • Loading branch information
simi authored Jul 2, 2024
1 parent 7fde239 commit 5b2becb
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 5b2becb

Please sign in to comment.