Encountered Syntax error while running this code script
babaralishah opened this issue · 1 comments
This is the syntax error that i am having after executing this code...
Broken DAG: [/opt/airflow/dags/Dags Dynamic/include/dag-template.py] Traceback (most recent call last):
File "", line 219, in _call_with_frames_removed
File "/opt/airflow/dags/Dags Dynamic/include/dag-template.py", line 9, in
dag = DAG(dag_id,
NameError: name 'dag_id' is not defined
Hello @babaralishah You need to upload just the dags/ folder of project inside the dags/ folder of Airflow. As you can see here [/opt/airflow/dags/Dags Dynamic/include/dag-template.py], all the project is inside de dags/ folder. The error in the file dag-template.py is because it is just a template, and do not stay in dags/ folder, just in include/ folder.