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 subversion and git services (JIRA)" <ji...@apache.org> on 2017/04/05 07:58:41 UTC

[jira] [Commented] (AIRFLOW-1001) Landing Time shows "unsupported operand type(s) for -: 'datetime.datetime' and 'NoneType'" on example_subdag_operator

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

ASF subversion and git services commented on AIRFLOW-1001:
----------------------------------------------------------

Commit 0371df4f1bd78e220e591d5cb23630d6a062f109 in incubator-airflow's branch refs/heads/master from [~bolke]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=0371df4 ]

[AIRFLOW-1001] Fix landing times if there is no following schedule

@once does not have a following schedule. This was
not checked for
and therefore the landing times page could bork.

Closes #2213 from bolkedebruin/AIRFLOW-1001


> Landing Time shows "unsupported operand type(s) for -: 'datetime.datetime' and 'NoneType'" on example_subdag_operator
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: AIRFLOW-1001
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1001
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: DAG, ui
>    Affects Versions: 1.8.0, 1.8.0rc5
>            Reporter: Ruslan Dautkhanov
>            Priority: Blocker
>             Fix For: 1.8.1
>
>
> Sample DAG example_subdag_operator shows below Oops page 
> on "Landing Times" tab
> {noformat}
> -------------------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/opt/cloudera/parcels/Anaconda/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app
>     response = self.full_dispatch_request()
>   File "/opt/cloudera/parcels/Anaconda/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request
>     rv = self.handle_user_exception(e)
>   File "/opt/cloudera/parcels/Anaconda/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception
>     reraise(exc_type, exc_value, tb)
>   File "/opt/cloudera/parcels/Anaconda/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request
>     rv = self.dispatch_request()
>   File "/opt/cloudera/parcels/Anaconda/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request
>     return self.view_functions[rule.endpoint](**req.view_args)
>   File "/opt/cloudera/parcels/Anaconda/lib/python2.7/site-packages/flask_admin/base.py", line 69, in inner
>     return self._run_view(f, *args, **kwargs)
>   File "/opt/cloudera/parcels/Anaconda/lib/python2.7/site-packages/flask_admin/base.py", line 368, in _run_view
>     return fn(self, *args, **kwargs)
>   File "/opt/cloudera/parcels/Anaconda/lib/python2.7/site-packages/flask_login.py", line 755, in decorated_view
>     return func(*args, **kwargs)
>   File "/opt/cloudera/parcels/Anaconda/lib/python2.7/site-packages/airflow/www/utils.py", line 125, in wrapper
>     return f(*args, **kwargs)
>   File "/opt/cloudera/parcels/Anaconda/lib/python2.7/site-packages/airflow/www/views.py", line 1560, in landing_times
>     secs = (ti.end_date - ts).total_seconds()
> TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'NoneType'
> {noformat}
> http://somehost:18111/admin/airflow/landing_times?root=&days=30&dag_id=example_subdag_operator



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