You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Bolke de Bruin (JIRA)" <ji...@apache.org> on 2017/02/02 12:58:51 UTC

[jira] [Resolved] (AIRFLOW-365) Code view in subdag trigger exception

     [ https://issues.apache.org/jira/browse/AIRFLOW-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bolke de Bruin resolved AIRFLOW-365.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.9.0

Issue resolved by pull request #2043
[https://github.com/apache/incubator-airflow/pull/2043]

> Code view in subdag trigger exception
> -------------------------------------
>
>                 Key: AIRFLOW-365
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-365
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: ui
>    Affects Versions: Airflow 1.7.1.3
>         Environment: Centos 7
>            Reporter: marco pioltelli
>            Assignee: Daniel Huang
>            Priority: Minor
>             Fix For: 1.9.0
>
>
> Hi,
> first of all this product is wonderful.
> I have created my DAG with subdag.
> It works very well, the following issue happen on the UI:
> - going into the dag, selecting (zoom into) a subdag
> - clicking into the Code section to view the code, the following exception is triggered
> -------------------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
>     response = self.full_dispatch_request()
>   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
>     rv = self.handle_user_exception(e)
>   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
>     reraise(exc_type, exc_value, tb)
>   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
>     rv = self.dispatch_request()
>   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
>     return self.view_functions[rule.endpoint](**req.view_args)
>   File "/usr/lib/python2.7/site-packages/flask_admin/base.py", line 68, in inner
>     return self._run_view(f, *args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/flask_admin/base.py", line 367, in _run_view
>     return fn(self, *args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/flask_login.py", line 755, in decorated_view
>     return func(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/airflow/www/views.py", line 655, in code
>     m = importlib.import_module(dag.module_name)
> AttributeError: 'DAG' object has no attribute 'module_name'
> It seems it is searching for a DAG instead for a subdag
> This also happens  with the example sub dag operator.
> Thanks
> Marco



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)