You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Thomas Hillyer (JIRA)" <ji...@apache.org> on 2019/08/12 13:59:00 UTC
[jira] [Created] (AIRFLOW-5174) Dag Run filter 'between' execution
dates throws flask error
Thomas Hillyer created AIRFLOW-5174:
---------------------------------------
Summary: Dag Run filter 'between' execution dates throws flask error
Key: AIRFLOW-5174
URL: https://issues.apache.org/jira/browse/AIRFLOW-5174
Project: Apache Airflow
Issue Type: Bug
Components: utils
Affects Versions: 1.10.3
Reporter: Thomas Hillyer
Fix For: 1.10.5
Using the 'between' option for filtering on the dag runs page throws the Ooops error.
[http://airflow_instance.com/admin/dagrun/?flt0_dag_id_equals=example_dag_id_name&flt1_state_equals=running&flt2_run_id_contains=backfill&flt5_execution_date_between=2019-08-07+00%3A00%3A00+to+2019-08-12+23%3A59%3A59|http://nyzls149m:8086/admin/dagrun/?flt0_dag_id_equals=prod_daily_calc_cme&flt1_state_equals=running&flt2_run_id_contains=backfill&flt5_execution_date_between=2019-08-07+00%3A00%3A00+to+2019-08-12+23%3A59%3A59]
The same error is thrown when filtering task instances.
Error is thrown after clicking the 'Apply' button.
Both dag run and task instance pages throw the following error.
{code:java}
Traceback (most recent call last):
File "/apps/user/vhve/lib64/python3.6/site-packages/flask/app.py", line 2311, in wsgi_app
response = self.full_dispatch_request()
File "/apps/user/vhve/lib64/python3.6/site-packages/flask/app.py", line 1834, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/apps/user/vhve/lib64/python3.6/site-packages/flask/app.py", line 1737, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/apps/user/vhve/lib64/python3.6/site-packages/flask/_compat.py", line 36, in reraise
raise value
File "/apps/user/vhve/lib64/python3.6/site-packages/flask/app.py", line 1832, in full_dispatch_request
rv = self.dispatch_request()
File "/apps/user/vhve/lib64/python3.6/site-packages/flask/app.py", line 1818, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/apps/user/vhve/lib64/python3.6/site-packages/flask_admin/base.py", line 69, in inner
return self._run_view(f, *args, **kwargs)
File "/apps/user/vhve/lib64/python3.6/site-packages/flask_admin/base.py", line 368, in _run_view
return fn(self, *args, **kwargs)
File "/apps/user/vhve/lib64/python3.6/site-packages/flask_admin/model/base.py", line 1960, in index_view
view_args.search, view_args.filters, page_size=page_size)
File "/apps/user/vhve/lib64/python3.6/site-packages/flask_admin/contrib/sqla/view.py", line 1053, in get_list
filters)
File "/apps/user/vhve/lib64/python3.6/site-packages/flask_admin/contrib/sqla/view.py", line 967, in _apply_filters
clean_value = flt.clean(value)
File "/apps/user/vhve/lib64/python3.6/site-packages/airflow/www/utils.py", line 449, in clean
return timezone.make_aware(dt, timezone=timezone.utc)
File "/apps/user/vhve/lib64/python3.6/site-packages/airflow/utils/timezone.py", line 111, in make_aware
if is_localized(value):
File "/apps/user/vhve/lib64/python3.6/site-packages/airflow/utils/timezone.py", line 38, in is_localized
return value.utcoffset() is not None
AttributeError: 'list' object has no attribute 'utcoffset'
{code}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)