You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/03/27 18:28:00 UTC

[jira] [Commented] (AIRFLOW-7113) Airflow failed to render gantt view due to missing start_date

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

ASF GitHub Bot commented on AIRFLOW-7113:
-----------------------------------------

cong-zhu commented on pull request #7913: [AIRFLOW-7113] fix gantt render error
URL: https://github.com/apache/airflow/pull/7913
 
 
   ---
   Issue link: [AIRFLOW-7113](https://issues.apache.org/jira/browse/AIRFLOW-7113)
   
   Make sure to mark the boxes below before creating PR: [x]
   
   - [ ] Description above provides context of the change
   - [ ] Unit tests coverage for changes (not needed for documentation changes)
   - [ ] Commits follow "[How to write a good git commit message](http://chris.beams.io/posts/git-commit/)"
   - [ ] Relevant documentation is updated including usage instructions.
   - [ ] I will engage committers as explained in [Contribution Workflow Example](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#contribution-workflow-example).
   
   ---
   In case of fundamental code change, Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals)) is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in [UPDATING.md](https://github.com/apache/airflow/blob/master/UPDATING.md).
   Read the [Pull Request Guidelines](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#pull-request-guidelines) for more information.
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> 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
>            Priority: Major
>
> 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)