Complete the code to add a description to an Airflow task.
task = PythonOperator(task_id='print_date', python_callable=print_date, dag=dag, [1]='Prints the current date')
The doc_md parameter is used to add documentation to an Airflow task in markdown format.
Complete the code to add tags to an Airflow task.
task = BashOperator(task_id='run_script', bash_command='echo Hello', dag=dag, [1]=['example', 'test'])
The tags parameter is used to assign tags to an Airflow task for easier filtering and organization.
Fix the error in the task definition to correctly add documentation.
task = PythonOperator(task_id='task1', python_callable=my_func, dag=dag, doc_md=[1])
The doc_md parameter expects a string with markdown content, so it must be enclosed in quotes.
Fill both blanks to add tags and documentation to an Airflow task.
task = BashOperator(task_id='task2', bash_command='ls', dag=dag, [1]=['data', 'etl'], [2]='Lists files in directory')
tags is used to assign tags, and doc_md is used for task documentation.
Fill all three blanks to add tags, documentation, and owner to an Airflow task.
task = PythonOperator(task_id='task3', python_callable=my_func, dag=dag, [1]=['analytics'], [2]='Runs analytics job', [3]='data_team')
tags assigns tags, doc_md adds documentation, and owner specifies the task owner.