You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/11/22 20:02:54 UTC

[GitHub] [airflow] kaxil commented on issue #5079: [AIRFLOW-4285] Update task dependency context defination and usage

kaxil commented on issue #5079: [AIRFLOW-4285] Update task dependency context defination and usage
URL: https://github.com/apache/airflow/pull/5079#issuecomment-557674309
 
 
   I get the following error when I try to click on the Task of a new DAG that has not yet run:
   
   
   ```
                             ____/ (  (    )   )  \___
                            /( (  (  )   _    ))  )   )\
                          ((     (   )(    )  )   (   )  )
                        ((/  ( _(   )   (   _) ) (  () )  )
                       ( (  ( (_)   ((    (   )  .((_ ) .  )_
                      ( (  )    (      (  )    )   ) . ) (   )
                     (  (   (  (   ) (  _  ( _) ).  ) . ) ) ( )
                     ( (  (   ) (  )   (  ))     ) _)(   )  )  )
                    ( (  ( \ ) (    (_  ( ) ( )  )   ) )  )) ( )
                     (  (   (  (   (_ ( ) ( _    )  ) (  )  )   )
                    ( (  ( (  (  )     (_  )  ) )  _)   ) _( ( )
                     ((  (   )(    (     _    )   _) _(_ (  (_ )
                      (_((__(_(__(( ( ( |  ) ) ) )_))__))_)___)
                      ((__)        \\||lll|l||///          \_))
                               (   /(/ (  )  ) )\   )
                             (    ( ( ( | | ) ) )\   )
                              (   /(| / ( )) ) ) )) )
                            (     ( ((((_(|)_)))))     )
                             (      ||\(|(|)|/||     )
                           (        |(||(||)||||        )
                             (     //|/l|||)|\\ \     )
                           (/ / //  /|//||||\\  \ \  \ _)
   -------------------------------------------------------------------------------
   Node: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa
   -------------------------------------------------------------------------------
   Traceback (most recent call last):
     File "/Users/kaxilnaik/.virtualenvs/airflow_master/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app
       response = self.full_dispatch_request()
     File "/Users/kaxilnaik/.virtualenvs/airflow_master/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
       rv = self.handle_user_exception(e)
     File "/Users/kaxilnaik/.virtualenvs/airflow_master/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception
       reraise(exc_type, exc_value, tb)
     File "/Users/kaxilnaik/.virtualenvs/airflow_master/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
       raise value
     File "/Users/kaxilnaik/.virtualenvs/airflow_master/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
       rv = self.dispatch_request()
     File "/Users/kaxilnaik/.virtualenvs/airflow_master/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
       return self.view_functions[rule.endpoint](**req.view_args)
     File "/Users/kaxilnaik/Documents/GitHub/apache-airflow/airflow/www/decorators.py", line 123, in wrapper
       return f(self, *args, **kwargs)
     File "/Users/kaxilnaik/.virtualenvs/airflow_master/lib/python3.7/site-packages/flask_appbuilder/security/decorators.py", line 101, in wraps
       return f(self, *args, **kwargs)
     File "/Users/kaxilnaik/Documents/GitHub/apache-airflow/airflow/www/decorators.py", line 58, in wrapper
       return f(*args, **kwargs)
     File "/Users/kaxilnaik/Documents/GitHub/apache-airflow/airflow/www/views.py", line 733, in task
       dep_context=dep_context)]
     File "/Users/kaxilnaik/Documents/GitHub/apache-airflow/airflow/www/views.py", line 731, in <listcomp>
       failed_dep_reasons = [(dep.dep_name, dep.reason) for dep in
     File "/Users/kaxilnaik/Documents/GitHub/apache-airflow/airflow/models/taskinstance.py", line 627, in get_failed_dep_statuses
       dep_context):
     File "/Users/kaxilnaik/Documents/GitHub/apache-airflow/airflow/ti_deps/deps/base_ti_dep.py", line 106, in get_dep_statuses
       yield from self._get_dep_statuses(ti, session, dep_context)
     File "/Users/kaxilnaik/Documents/GitHub/apache-airflow/airflow/ti_deps/deps/dagrun_id_dep.py", line 51, in _get_dep_statuses
       if not dagrun.run_id or not match(BackfillJob.ID_PREFIX + '.*', dagrun.run_id):
   AttributeError: 'NoneType' object has no attribute 'run_id'
   ```

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


With regards,
Apache Git Services