Cong Zhu created AIRFLOW-7113:
---------------------------------
Summary: Airflow failed to render gantt view due to missing
start_date
Key: AIRFLOW-7113
URL: https://issues.apache.org/jira/browse/AIRFLOW-7113
Project: Apache Airflow
Issue Type: Bug
Components: core
Affects Versions: 1.10.10
Reporter: Cong Zhu
Assignee: Cong Zhu
Airflow failed to render gantt view if some task instances were missing
start_date. This can happen when tasks failed with parsing issue.
Example traceback:
{quote}Traceback (most recent call last): File
"/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1988, in wsgi_app
response = self.full_dispatch_request() File
"/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1641, in
full_dispatch_request rv = self.handle_user_exception(e) File
"/usr/local/lib/python2.7/dist-packages/newrelic/hooks/framework_flask.py",
line 103, in _nr_wrapper_Flask_handle_exception_ return wrapped(*args,
**kwargs) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line
1544, in handle_user_exception reraise(exc_type, exc_value, tb) File
"/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1639, in
full_dispatch_request rv = self.dispatch_request() File
"/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1625, in
dispatch_request return self.view_functions[rule.endpoint](**req.view_args)
File
"/usr/local/lib/python2.7/dist-packages/newrelic/hooks/framework_flask.py",
line 40, in _nr_wrapper_handler_ return wrapped(*args, **kwargs) File
"/usr/local/lib/python2.7/dist-packages/airflow/www_rbac/decorators.py", line
121, in wrapper return f(self, *args, **kwargs) File
"/usr/local/lib/python2.7/dist-packages/flask_appbuilder/security/decorators.py",
line 101, in wraps return f(self, *args, **kwargs) File
"/usr/local/lib/python2.7/dist-packages/airflow/www_rbac/decorators.py", line
56, in wrapper return f(*args, **kwargs) File
"/usr/local/lib/python2.7/dist-packages/airflow/utils/db.py", line 77, in
wrapper return func(*args, **kwargs) File
"/usr/local/lib/python2.7/dist-packages/airflow/www_rbac/views.py", line 1889,
in gantt 'startDate': wwwutils.epoch(start_date), File
"/usr/local/lib/python2.7/dist-packages/airflow/www_rbac/utils.py", line 192,
in epoch return int(time.mktime(dttm.timetuple())) * 1000, AttributeError:
'NoneType' object has no attribute 'timetuple'{quote}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)