You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ruslan Dautkhanov (JIRA)" <ji...@apache.org> on 2017/03/17 20:33:41 UTC

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

Ruslan Dautkhanov created AIRFLOW-1001:
------------------------------------------

             Summary: 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


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)