-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clicking Edit on TaskInstance Causes Crash #12489
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
@jrd281 lol, you beat me to it 😂
|
I'd like to work on this one. |
@patchandpray Assigned 🐈 |
any progress on this @patchandpray? |
I managed to identify where the problem is. but I did not have the time to look into the actual fix. I should have time for that tomorrow :) |
ok we'd like this bugfix in for Airflow 2.0rc1 so let us know if you get stuck / need help |
@patchandpray #12770 fixes the issue. We are in process of fixing all the pending bugs for 2.0 since we are just a week away from cutting RCs -- so I went ahead and created the PR to fix this. |
I understand completely. 🙂 |
…770) closes apache/airflow#12489 GitOrigin-RevId: be7d867459dcc4d26bd3cae55df6ff118c2be16a
…770) closes apache/airflow#12489 GitOrigin-RevId: be7d867459dcc4d26bd3cae55df6ff118c2be16a
…770) closes apache/airflow#12489 GitOrigin-RevId: be7d867459dcc4d26bd3cae55df6ff118c2be16a
…770) closes apache/airflow#12489 GitOrigin-RevId: be7d867459dcc4d26bd3cae55df6ff118c2be16a
…770) closes apache/airflow#12489 GitOrigin-RevId: be7d867459dcc4d26bd3cae55df6ff118c2be16a
…770) closes apache/airflow#12489 GitOrigin-RevId: be7d867459dcc4d26bd3cae55df6ff118c2be16a
…770) closes apache/airflow#12489 GitOrigin-RevId: be7d867459dcc4d26bd3cae55df6ff118c2be16a
…770) closes apache/airflow#12489 GitOrigin-RevId: be7d867459dcc4d26bd3cae55df6ff118c2be16a
…770) closes apache/airflow#12489 GitOrigin-RevId: be7d867459dcc4d26bd3cae55df6ff118c2be16a
…770) closes apache/airflow#12489 GitOrigin-RevId: be7d867459dcc4d26bd3cae55df6ff118c2be16a
…770) closes apache/airflow#12489 GitOrigin-RevId: be7d867459dcc4d26bd3cae55df6ff118c2be16a
…770) closes apache/airflow#12489 GitOrigin-RevId: be7d867459dcc4d26bd3cae55df6ff118c2be16a
…770) closes apache/airflow#12489 GitOrigin-RevId: be7d867459dcc4d26bd3cae55df6ff118c2be16a
Apache Airflow version: 2.0.0b2
Kubernetes version (if you are using kubernetes) (use
kubectl version
): N/AEnvironment:
uname -a
): Linux 5.4.0-1031-azure A simple plugin system for Airflow #32-Ubuntu SMPx86_64 GNU/LinuxWhat happened: I was looking at the taskinstance list and then I clicked the edit icon. After clicking, an error page was displayed.
What you expected to happen: I expected to be whisked to an editing UI
How to reproduce it:
Recent Tasks
headingEdit
button for one of your tasksAnything else we need to know:
UI Error Page
Something bad has happened. Please consider letting us know by creating a bug report using GitHub.Python version: 3.8.5
Airflow version: 2.0.0b2
Node: REDACTED
Traceback (most recent call last):
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functionsrule.endpoint
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask_appbuilder/security/decorators.py", line 109, in wraps
return f(self, *args, **kwargs)
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask_appbuilder/views.py", line 606, in edit
return self.render_template(
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask_appbuilder/baseviews.py", line 280, in render_template
return render_template(
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask/templating.py", line 137, in render_template
return _render(
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask/templating.py", line 120, in _render
rv = template.render(context)
File "/var/lib/airflow/venv/lib/python3.8/site-packages/jinja2/environment.py", line 1090, in render
self.environment.handle_exception()
File "/var/lib/airflow/venv/lib/python3.8/site-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/var/lib/airflow/venv/lib/python3.8/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask_appbuilder/templates/appbuilder/general/model/edit.html", line 2, in top-level template code
{% import 'appbuilder/general/lib.html' as lib %}
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask_appbuilder/templates/appbuilder/base.html", line 1, in top-level template code
{% extends base_template %}
File "/var/lib/airflow/venv/lib/python3.8/site-packages/airflow/www/templates/airflow/master.html", line 20, in top-level template code
{% extends 'appbuilder/baselayout.html' %}
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask_appbuilder/templates/appbuilder/baselayout.html", line 2, in top-level template code
{% import 'appbuilder/baselib.html' as baselib %}
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask_appbuilder/templates/appbuilder/init.html", line 46, in top-level template code
{% block body %}
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask_appbuilder/templates/appbuilder/baselayout.html", line 19, in block "body"
{% block content %}
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask_appbuilder/templates/appbuilder/general/model/edit.html", line 23, in block "content"
{% block edit_form %}
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask_appbuilder/templates/appbuilder/general/model/edit.html", line 25, in block "edit_form"
{{ widgets.get('edit')(form_action=form_action)|safe }}
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask_appbuilder/widgets.py", line 37, in call
return template.render(args)
File "/var/lib/airflow/venv/lib/python3.8/site-packages/jinja2/environment.py", line 1090, in render
self.environment.handle_exception()
File "/var/lib/airflow/venv/lib/python3.8/site-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/var/lib/airflow/venv/lib/python3.8/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask_appbuilder/templates/appbuilder/general/widgets/form.html", line 45, in top-level template code
{{ lib.render_field(field, begin_sep_label, end_sep_label, begin_sep_field, end_sep_field) }}
File "/var/lib/airflow/venv/lib/python3.8/site-packages/jinja2/runtime.py", line 679, in _invoke
rv = self._func(*arguments)
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask_appbuilder/templates/appbuilder/general/lib.html", line 237, in template
{{ field(**kwargs)|safe }}
File "/var/lib/airflow/venv/lib/python3.8/site-packages/wtforms/fields/core.py", line 160, in call
return self.meta.render_field(self, kwargs)
File "/var/lib/airflow/venv/lib/python3.8/site-packages/wtforms/meta.py", line 56, in render_field
return field.widget(field, **render_kw)
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask_appbuilder/fieldwidgets.py", line 176, in call
return super(Select2ManyWidget, self).call(field, **kwargs)
File "/var/lib/airflow/venv/lib/python3.8/site-packages/wtforms/widgets/core.py", line 300, in call
for val, label, selected in field.iter_choices():
File "/var/lib/airflow/venv/lib/python3.8/site-packages/flask_appbuilder/fields.py", line 209, in iter_choices
yield (pk, self.get_label(obj), obj in self.data)
TypeError: argument of type 'DagRun' is not iterable
How often does this problem occur?: Every time I click the
Edit
iconThe text was updated successfully, but these errors were encountered: