Complete the code to import the main Airflow DAG class.
from airflow import [1]
The DAG class is the main structure to define workflows in Airflow.
Complete the code to define a simple Airflow DAG with an ID.
dag = DAG(dag_id='[1]')
The dag_id is a unique identifier for the DAG. 'my_workflow' is a common example name.
Fix the error in the Airflow task definition by completing the operator name.
task = [1](task_id='print_hello', dag=dag)
PythonOperator runs Python functions as tasks in Airflow.
Fill both blanks to create a DAG that runs daily starting from 2023-01-01.
dag = DAG(dag_id='daily_run', schedule_interval=[1], start_date=[2])
'@daily' sets the DAG to run once every day. The start_date must be a datetime object for the first run.
Fill all three blanks to define a PythonOperator task that calls a function named 'hello'.
task = PythonOperator(task_id=[1], python_callable=[2], dag=[3])
The task_id is a string identifier. The python_callable is the function to run. The dag is the DAG object.