Airflow DAG Error

Broken DAG: [/opt/airflow/dags/model_trip_duration_alitran.py]
Traceback (most recent call last):
File “/home/airflow/.local/lib/python3.12/site-packages/airflow/models/taskmixin.py”, line 263, in set_downstream
self._set_relatives(task_or_task_list, upstream=False, edge_modifier=edge_modifier)
File “/home/airflow/.local/lib/python3.12/site-packages/airflow/models/taskmixin.py”, line 215, in _set_relatives
task_object.update_relative(self, not upstream, edge_modifier=edge_modifier)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘function’ object has no attribute ‘update_relative’

I am seeing the error above when I run DAGs in Airflow? Why would I get these?

Hello @sk5479,

Could you check in the last part to declare the dependencies you used a different name instead of the task. In exercise 4 it explains why. Try using is_deployable_task instead of the method and should fix the issue. Thank you