Dr-Denzy removed a comment on issue #13761:
URL: https://github.com/apache/airflow/issues/13761#issuecomment-797567254


   Style 1:
   `
   """
   ## My Awesome DAG Name
   
   #### Purpose
   
   This DAG does awesome stuff!
   
   #### Outputs
   
   This cool data `pipeline` has the following outputs:
   
   - `output_1`
   - `output_2`
   
   #### Owner/Maintainer
   
   You can reach the maintainer on this email:
   [[email protected]](mailto:[email protected]).
   """
   
   from airflow import DAG
   from airflow.operators.bash import BashOperator
   from airflow.utils.dates import days_ago
   
   default_args = {
       'owner': 'airflow',
       'start_date': days_ago(2)
   }
   
   with DAG('doc_md_style_1', default_args=default_args, description='My Dag 
Doc Md',
            schedule_interval='@once', catchup=False) as dag:
       dag.doc_md = __doc__
   
       t1 = BashOperator(
           task_id='print_date',
           bash_command='date',
       )
       t1.doc_md = """/
       ### Task 1 message.
       """
   
       t2 = BashOperator(
           task_id='sleep',
           depends_on_past=False,
           bash_command='sleep 5',
           retries=3,
       )
   
       t3 = BashOperator(
           task_id='greeting',
           bash_command='echo Hello World!',
       )
   
       t1 >> t2 >> t3
   `


----------------------------------------------------------------
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]


Reply via email to