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 19fdbe4fa0e docs: add DAG documentation for example_bash_decorator 
(#62948)
19fdbe4fa0e is described below

commit 19fdbe4fa0ed9339f30d35eed37b04b9d769d4d4
Author: Eason09053360 <[email protected]>
AuthorDate: Wed Mar 11 01:24:58 2026 +0800

    docs: add DAG documentation for example_bash_decorator (#62948)
    
    * add_DAG_documentation_for_example_bash_decorator
    
    * run prek
---
 .../standard/example_dags/example_bash_decorator.py         | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git 
a/providers/standard/src/airflow/providers/standard/example_dags/example_bash_decorator.py
 
b/providers/standard/src/airflow/providers/standard/example_dags/example_bash_decorator.py
index e5b005ce40c..1cd8d5b61ee 100644
--- 
a/providers/standard/src/airflow/providers/standard/example_dags/example_bash_decorator.py
+++ 
b/providers/standard/src/airflow/providers/standard/example_dags/example_bash_decorator.py
@@ -28,6 +28,19 @@ from airflow.sdk.exceptions import AirflowSkipException
 
 @dag(schedule=None, start_date=pendulum.datetime(2023, 1, 1, tz="UTC"), 
catchup=False)
 def example_bash_decorator():
+    """
+    ### Bash TaskFlow Decorator Example
+    This DAG demonstrates the `@task.bash` decorator for running shell 
commands from TaskFlow tasks.
+    It includes:
+    - Basic bash tasks and loops using `override`
+    - Jinja templating and context variables
+    - Skip behavior via non-zero exit codes and conditional branching
+    - Parameterized environment variables and dynamic command construction
+
+    For details, see the Bash decorator documentation
+    
[here](https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/bash.html).
+    """
+
     @task.bash
     def run_me(sleep_seconds: int, task_instance_key_str: str) -> str:
         return f"echo {task_instance_key_str} && sleep {sleep_seconds}"

Reply via email to