You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/12/06 21:45:23 UTC
[GitHub] [airflow] kazanzhy commented on issue #20081: BigQueryExecuteQueryOperator timeout issue (how to increase timeout)
kazanzhy commented on issue #20081:
URL: https://github.com/apache/airflow/issues/20081#issuecomment-987261565
Regarding to the documentation the parameter `api_resource_configs` seems should be like `{'query': {'useQueryCache': False, 'timeoutMs': 100000}}`
https://airflow.apache.org/docs/apache-airflow-providers-google/stable/_modules/airflow/providers/google/cloud/operators/bigquery.html#BigQueryExecuteQueryOperator
Anyway, this operator will be deprecated, and better try to use `BigQueryInsertJobOperator` like:
```
insert_query_job = BigQueryInsertJobOperator(
task_id="mobile_push_stat",
configuration={
"query": {
"query": "{% include '/sql/updater/mobile_push_stat.sql' %}",
"useLegacySql": False,
"jobTimeoutMs": 3600000
}
},
location=location,
gcp_conn_id=gcp_conn
)
```
https://airflow.apache.org/docs/apache-airflow-providers-google/stable/_modules/airflow/providers/google/cloud/operators/bigquery.html#BigQueryInsertJobOperator
Maybe you will find helpful these examples:
https://github.com/apache/airflow/blob/main/airflow/providers/google/cloud/example_dags/example_bigquery_queries.py
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org