You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Daniel Standish (JIRA)" <ji...@apache.org> on 2019/06/11 22:05:00 UTC
[jira] [Resolved] (AIRFLOW-4756) gantt chart view fails after
clearing failed task in current run
[ https://issues.apache.org/jira/browse/AIRFLOW-4756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Standish resolved AIRFLOW-4756.
--------------------------------------
Resolution: Fixed
Fix Version/s: 1.10.4
merged into masterĀ [https://github.com/apache/airflow/pull/5399]
> gantt chart view fails after clearing failed task in current run
> ----------------------------------------------------------------
>
> Key: AIRFLOW-4756
> URL: https://issues.apache.org/jira/browse/AIRFLOW-4756
> Project: Apache Airflow
> Issue Type: Bug
> Components: ui
> Affects Versions: 1.10.3
> Reporter: Daniel Standish
> Assignee: Daniel Standish
> Priority: Minor
> Fix For: 1.10.4
>
>
> To repro:
> Make some dag with a number of decently long-running tasks (so you have time to do this).
> Get the dag running
> Make sure one of the tasks fails.
> Before the others complete, clear the failing task.
> View gantt chart.
> Observer error like so:
> {code}
> Traceback (most recent call last):
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/flask/app.py", line 2292, in wsgi_app
> response = self.full_dispatch_request()
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
> rv = self.handle_user_exception(e)
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/flask/app.py", line 1718, in handle_user_exception
> reraise(exc_type, exc_value, tb)
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/flask/_compat.py", line 35, in reraise
> raise value
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
> rv = self.dispatch_request()
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request
> return self.view_functions[rule.endpoint](**req.view_args)
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/flask_admin/base.py", line 69, in inner
> return self._run_view(f, *args, **kwargs)
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/flask_admin/base.py", line 368, in _run_view
> return fn(self, *args, **kwargs)
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/flask_login/utils.py", line 258, in decorated_view
> return func(*args, **kwargs)
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/airflow/www/utils.py", line 275, in wrapper
> return f(*args, **kwargs)
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/airflow/utils/db.py", line 73, in wrapper
> return func(*args, **kwargs)
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/airflow/www/views.py", line 2015, in gantt
> root=root,
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/flask_admin/base.py", line 308, in render
> return render_template(template, **kwargs)
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/flask/templating.py", line 135, in render_template
> context, ctx.app)
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/flask/templating.py", line 117, in _render
> rv = template.render(context)
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/jinja2/asyncsupport.py", line 76, in render
> return original_render(self, *args, **kwargs)
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/jinja2/environment.py", line 1008, in render
> return self.environment.handle_exception(exc_info, True)
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/jinja2/environment.py", line 780, in handle_exception
> reraise(exc_type, exc_value, tb)
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/jinja2/_compat.py", line 37, in reraise
> raise value.with_traceback(tb)
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/airflow/www/templates/airflow/gantt.html", line 18, in top-level template code
> {% extends "airflow/dag.html" %}
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/airflow/www/templates/airflow/dag.html", line 19, in top-level template code
> {% import 'admin/lib.html' as lib with context %}
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/airflow/www/templates/airflow/master.html", line 18, in top-level template code
> {% extends "admin/master.html" %}
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/airflow/www/templates/admin/master.html", line 18, in top-level template code
> {% extends 'admin/base.html' %}
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/flask_admin/templates/bootstrap3/admin/base.html", line 94, in top-level template code
> {% block tail %}
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/airflow/www/templates/airflow/gantt.html", line 58, in block "tail"
> data = {{ data |tojson|safe }};
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/flask/json/__init__.py", line 327, in tojson_filter
> return Markup(htmlsafe_dumps(obj, **kwargs))
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/flask/json/__init__.py", line 242, in htmlsafe_dumps
> rv = dumps(obj, **kwargs) \
> File "/Users/someperson/.virtualenvs/scratch/lib/python3.7/site-packages/flask/json/__init__.py", line 179, in dumps
> rv = _json.dumps(obj, **kwargs)
> File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 238, in dumps
> **kw).encode(obj)
> File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/encoder.py", line 199, in encode
> chunks = self.iterencode(o, _one_shot=True)
> File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/encoder.py", line 257, in iterencode
> return _iterencode(o, 0)
> TypeError: '<' not supported between instances of 'NoneType' and 'str'
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)