kaxil edited a comment on issue #5743: [AIRFLOW-5088][AIP-24] Persisting 
serialized DAG in DB for webserver scalability
URL: https://github.com/apache/airflow/pull/5743#issuecomment-523416060
 
 
   
   I seem to get that when the DAG Serialization is turned off too. So this 
might be a bug in master branch itself.
   
   > Bug:
   > 
   > ```
   > [2019-08-21 12:19:17,625] {app.py:1891} ERROR - Exception on /task [GET]
   > Traceback (most recent call last):
   >   File 
"/Users/ash/.virtualenvs/airflow/lib/python3.7/site-packages/flask/app.py", 
line 2446, in wsgi_app
   >     response = self.full_dispatch_request()
   >   File 
"/Users/ash/.virtualenvs/airflow/lib/python3.7/site-packages/flask/app.py", 
line 1951, in full_dispatch_request
   >     rv = self.handle_user_exception(e)
   >   File 
"/Users/ash/.virtualenvs/airflow/lib/python3.7/site-packages/flask/app.py", 
line 1820, in handle_user_exception
   >     reraise(exc_type, exc_value, tb)
   >   File 
"/Users/ash/.virtualenvs/airflow/lib/python3.7/site-packages/flask/_compat.py", 
line 39, in reraise
   >     raise value
   >   File 
"/Users/ash/.virtualenvs/airflow/lib/python3.7/site-packages/flask/app.py", 
line 1949, in full_dispatch_request
   >     rv = self.dispatch_request()
   >   File 
"/Users/ash/.virtualenvs/airflow/lib/python3.7/site-packages/flask/app.py", 
line 1935, in dispatch_request
   >     return self.view_functions[rule.endpoint](**req.view_args)
   >   File 
"/Users/ash/code/python/incubator-airflow/airflow/www/decorators.py", line 121, 
in wrapper
   >     return f(self, *args, **kwargs)
   >   File 
"/Users/ash/.virtualenvs/airflow/lib/python3.7/site-packages/flask_appbuilder/security/decorators.py",
 line 101, in wraps
   >     return f(self, *args, **kwargs)
   >   File 
"/Users/ash/code/python/incubator-airflow/airflow/www/decorators.py", line 56, 
in wrapper
   >     return f(*args, **kwargs)
   >   File "/Users/ash/code/python/incubator-airflow/airflow/www/views.py", 
line 736, in task
   >     dep_context=dep_context)]
   >   File "/Users/ash/code/python/incubator-airflow/airflow/www/views.py", 
line 734, in <listcomp>
   >     failed_dep_reasons = [(dep.dep_name, dep.reason) for dep in
   >   File 
"/Users/ash/code/python/incubator-airflow/airflow/models/taskinstance.py", line 
626, in get_failed_dep_statuses
   >     dep_context):
   >   File 
"/Users/ash/code/python/incubator-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/ash/code/python/incubator-airflow/airflow/ti_deps/deps/dagrun_id_dep.py",
 line 50, 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'
   > ```
   > 
   > To reproduce:
   > 
   > 1. Navigate to /graph of a disabled dag with no runs
   > 2. Click on a task "blob"
   > 3. Hit the Task Instance Details button
   > 4. boom
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to