You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (Jira)" <ji...@apache.org> on 2019/09/05 12:25:00 UTC

[jira] [Commented] (AIRFLOW-4873) Improve BROKEN DAG error message by specifying dag_id

    [ https://issues.apache.org/jira/browse/AIRFLOW-4873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16923363#comment-16923363 ] 

Ash Berlin-Taylor commented on AIRFLOW-4873:
--------------------------------------------

One file can contain more than one dag. If I have a file with dag_a and it's working fine, and I try to add dag_b to that same file but make a syntax error, seeing that error reported against dag_a would be misleading. But the error already tells me to look in /home/airflow/dags/my_dag.py.

> Improve BROKEN DAG error message by specifying dag_id 
> ------------------------------------------------------
>
>                 Key: AIRFLOW-4873
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4873
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: ui
>    Affects Versions: 1.10.3
>            Reporter: jack
>            Assignee: Omkar
>            Priority: Major
>              Labels: easy-fix
>
> In some cases there is a broken DAG message appear in the UI:
>  
> {code:java}
> Broken DAG: [/home/airflow/dags/my_dag.py] No module named 'HelperClass'  {code}
>  
> The problem here is that the error indicates only the file name but it doesn't specify the dag_id.
> The error could be improved to (or similar):
>  
> {code:java}
> Broken DAG: DAG_ID : [/home/airflow/dags/my_dag.py] No module named 'HelperClass' {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)