Complete the code to import the TaskGroup class from Airflow.
from airflow.utils.task_group import [1]
The TaskGroup class is imported from airflow.utils.task_group to create task groups for visual organization.
Complete the code to create a TaskGroup named 'processing'.
with [1](group_id='processing') as processing_group:
Use TaskGroup with the with statement to create a group of tasks named 'processing'.
Fix the error in the code to add a task inside the TaskGroup using PythonOperator.
task = PythonOperator(task_id='task1', python_callable=[1])
The python_callable argument expects a function name without parentheses. So, print_hello is correct.
Fill both blanks to set dependencies between tasks inside a TaskGroup.
task1 [1] task2 [2] task3
Use the right shift operator >> to set task dependencies in Airflow, meaning task1 runs before task2, and task2 before task3.
Fill all three blanks to create a TaskGroup and add a PythonOperator task inside it.
with [1](group_id='group1') as [2]: task = [3](task_id='task1', python_callable=my_func)
First, create a TaskGroup named 'group1'. Then use the same name as the context variable. Inside, create a PythonOperator task.