Mention about .sh commands and templates in BashOperator docs (#11566)
This commit is contained in:
Родитель
925f7619e1
Коммит
bf468c7b28
|
@ -62,6 +62,13 @@ class BashOperator(BaseOperator):
|
|||
|
||||
bash_command = "set -e; python3 script.py '{{ next_execution_date }}'"
|
||||
|
||||
.. note::
|
||||
|
||||
Add a space after the script name when directly calling a ``.sh`` script with the
|
||||
``bash_command`` argument -- for example ``bash_command="my_script.sh "``. This
|
||||
is because Airflow tries to apply load this file and process it as a Jinja template to
|
||||
it ends with ``.sh``, which will likely not be what most users want.
|
||||
|
||||
.. warning::
|
||||
|
||||
Care should be taken with "user" input or when using Jinja templates in the
|
||||
|
|
Загрузка…
Ссылка в новой задаче