airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pat Christopher (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-3172) AttributeError: 'DagModel' object has no attribute 'execution_date'
Date Fri, 19 Oct 2018 05:31:00 GMT

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

Pat Christopher commented on AIRFLOW-3172:
------------------------------------------

[~vinnson] do you mind dumping the schema for DagModel for the sqllite version that works? 
Everything I'm seeing in the code suggest that `execution_date` is a property of a DagRun
and not a DagModel.  

> AttributeError: 'DagModel' object has no attribute 'execution_date'
> -------------------------------------------------------------------
>
>                 Key: AIRFLOW-3172
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3172
>             Project: Apache Airflow
>          Issue Type: Bug
>         Environment: Docker Environment: python:3.6-stretch
>            Reporter: Vinnson Lee
>            Priority: Major
>             Fix For: 1.10.0
>
>
> 2018-10-09 10:13:28,430] ERROR in app: Exception on /admin/dagmodel/ [GET]
> Traceback (most recent call last):
>  File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
>  response = self.full_dispatch_request()
>  File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
>  rv = self.handle_user_exception(e)
>  File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
>  reraise(exc_type, exc_value, tb)
>  File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
>  raise value
>  File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request
>  rv = self.dispatch_request()
>  File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request
>  return self.view_functions[rule.endpoint](**req.view_args)
>  File "/usr/local/lib/python3.6/site-packages/flask_admin/base.py", line 69, in inner
>  return self._run_view(f, *args, **kwargs)
>  File "/usr/local/lib/python3.6/site-packages/flask_admin/base.py", line 368, in _run_view
>  return fn(self, *args, **kwargs)
>  File "/usr/local/lib/python3.6/site-packages/flask_admin/model/base.py", line 1900,
in index_view
>  return_url=self._get_list_url(view_args),
>  File "/usr/local/lib/python3.6/site-packages/flask_admin/base.py", line 308, in render
>  return render_template(template, **kwargs)
>  File "/usr/local/lib/python3.6/site-packages/flask/templating.py", line 134, in render_template
>  context, ctx.app)
>  File "/usr/local/lib/python3.6/site-packages/flask/templating.py", line 116, in _render
>  rv = template.render(context)
>  File "/usr/local/lib/python3.6/site-packages/jinja2/environment.py", line 989, in render
>  return self.environment.handle_exception(exc_info, True)
>  File "/usr/local/lib/python3.6/site-packages/jinja2/environment.py", line 754, in handle_exception
>  reraise(exc_type, exc_value, tb)
>  File "/usr/local/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise
>  raise value.with_traceback(tb)
>  File "/usr/local/lib/python3.6/site-packages/airflow/www/templates/airflow/list_dags.html",
line 22, in top-level template code
>  \{% import 'admin/actions.html' as actionlib with context %}
>  File "/usr/local/lib/python3.6/site-packages/airflow/www/templates/admin/master.html",
line 18, in top-level template code
>  \{% extends 'admin/base.html' %}
>  File "/usr/local/lib/python3.6/site-packages/flask_admin/templates/bootstrap3/admin/base.html",
line 30, in top-level template code
>  \{% block page_body %}
>  File "/usr/local/lib/python3.6/site-packages/airflow/www/templates/admin/master.html",
line 107, in block "page_body"
>  \{% block body %}
>  File "/usr/local/lib/python3.6/site-packages/airflow/www/templates/airflow/list_dags.html",
line 67, in block "body"
>  \{% block model_list_table %}
>  File "/usr/local/lib/python3.6/site-packages/airflow/www/templates/airflow/list_dags.html",
line 115, in block "model_list_table"
>  \{% block list_row scoped %}
>  File "/usr/local/lib/python3.6/site-packages/airflow/www/templates/airflow/list_dags.html",
line 143, in block "list_row"
>  <td>\{{ get_value(row, c) }}</td>
>  File "/usr/local/lib/python3.6/site-packages/flask_admin/model/base.py", line 1742,
in get_list_value
>  self.column_type_formatters,
>  File "/usr/local/lib/python3.6/site-packages/flask_admin/model/base.py", line 1707,
in _get_list_value
>  value = column_fmt(self, context, model, name)
>  File "/usr/local/lib/python3.6/site-packages/airflow/www/views.py", line 124, in dag_link
>  execution_date=m.execution_date)
> AttributeError: 'DagModel' object has no attribute 'execution_date'
>  
>  
> Its fine to work with SQLlite, but not with mysql



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message