Neel
Neel

Reputation: 10153

airflow: 1.7: DAG not being updated in GUI

I have my dag file test1.py defined under /opt/airflow/dags directory. Initially, the file has only one task, test1_task01. In my GUI, the dag shows up correctly with only one task. However, when I add another task to my DAG that looks like:

DAG - test1_task01 <- test2_task01 (representative - not airflow syntax)

I do not see the updated DAG in my GUI. The GUI still has the old DAG. airflow list_tasks <dagname> shows the correct DAG relationships and airflow scheduler executes the latest version, but the GUI somehow is not pulling the latest info.

How do I get an updated view of my DAGs via the GUI?

Upvotes: 5

Views: 17409

Answers (3)

Voilin
Voilin

Reputation: 401

I encountered this problem in a code tab, it would not update. Turns out it is not updated due to the mistake in the DAG script. Airflow loads most recent valid version and the error is logged on the /home page. Look it up there, fix the problem in the script and code should update just fine.

Upvotes: 2

Manjunath
Manjunath

Reputation: 11

Its also possible that , If you creating new DAG , you might have used the same dag_id from the previous DAGs which is successfully running . In that case airflow GUI doesn't show any error or Hint why its not being loaded

Upvotes: 1

Alg_D
Alg_D

Reputation: 2400

Once you change the structure of your DAG/tasks you need to restart the webserver (and probablly the scheduler too) in order to see the new changes on the gui. However if can also use the cmd line interface interface >airflow list_tasks <dag_id> among many other useful commands to test and run the new changes.

Upvotes: 0

Related Questions