Skip to content
Advertisement

DAG not visible in Web-UI

I am new to Airflow. I am following a tutorial and written following code.

JavaScript

On running the script, it doesn’t show any errors but when I check for dags in Web-UI it doesn’t show under Menu->DAGs

enter image description here

But I can see the scheduled job under Menu->Browse->Jobs

enter image description here

I also cannot see anything in $AIRFLOW_HOME/dags. Is it supposed to be like this only? Can someone explain why?

Advertisement

Answer

The ScheduleJob that you see on the jobs page is an entry for the Scheduler. Thats not the dag being scheduled.

Its weird that your $AIRFLOW_HOME/dags is empty. All dags must live within the $AIRFLOW_HOME/dags directory (specifically in the dags directory configured in your airflow.cfg file). Looks like you are not storing the actual dag in the right directory (the dags directory).

Alternatively, sometimes you also need to restart the webserver for the dag to show up (though that doesn’t seem to be the issue here).

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement