You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Xiaodong Ye (Jira)" <ji...@apache.org> on 2020/01/16 08:59:00 UTC
[jira] [Created] (AIRFLOW-6578) store_serialized_dags raises fatal
error for reviewing logs
Xiaodong Ye created AIRFLOW-6578:
------------------------------------
Summary: store_serialized_dags raises fatal error for reviewing logs
Key: AIRFLOW-6578
URL: https://issues.apache.org/jira/browse/AIRFLOW-6578
Project: Apache Airflow
Issue Type: Bug
Components: core
Affects Versions: 1.10.7
Environment: local development
Reporter: Xiaodong Ye
Assignee: Xiaodong Ye
When I set the configuration "store_serialized_dags" to True, it will raise errors during log checking.
{quote}File "/Users/christian/anaconda3/envs/airflow/lib/python3.7/site-packages/airflow/models/taskinstance.py", line 1149, in get_template_context if 'tables' in task.params: TypeError: argument of type 'NoneType' is not iterable
{quote}
I tried to dump the task instance and found the task's params variable is a dict type (empty dict so far) when the setting "store_serialized_dags" is False, otherwise, it will be None type and causes troubles.
So I have to hardcode line 1149 from
if 'tables' in task.params:
to
if task.params and 'tables' in task.params:
BTW, I'm new to airflow and to its core, currently, I'm not sure what the tables variable used for and of course its incoming impact.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)