Chris Riccomini created AIRFLOW-712:
---------------------------------------
Summary: Google BQ hook retry doesn't work
Key: AIRFLOW-712
URL: https://issues.apache.org/jira/browse/AIRFLOW-712
Project: Apache Airflow
Issue Type: Bug
Components: gcp
Reporter: Chris Riccomini
Assignee: Chris Riccomini
AIRFLOW-667 is broken. When the 500/503 error triggers, we see:
{noformat}
[2016-12-22 14:22:08,870] {models.py:1299} ERROR - 'HttpError' object has no
attribute 'code'
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/airflow/models.py", line 1258, in run
result = task_copy.execute(context=context)
File
"/usr/lib/python2.7/site-packages/airflow/contrib/operators/bigquery_operator.py",
line 67, in execute
self.allow_large_results, self.udf_config, self.use_legacy_sql)
File
"/usr/lib/python2.7/site-packages/airflow/contrib/hooks/bigquery_hook.py", line
214, in run_query
return self.run_with_configuration(configuration)
File
"/usr/lib/python2.7/site-packages/airflow/contrib/hooks/bigquery_hook.py", line
490, in run_with_configuration
if err.code in [500, 503]:
AttributeError: 'HttpError' object has no attribute 'code'
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)