Updated default query timeout to 30 seconds
authorThierry Florac <tflorac@ulthar.net>
Wed, 25 Sep 2019 18:50:33 +0200
changeset 156 1b637fe76ab8
parent 155 fe440b88825a
child 157 da3be11a5f8c
Updated default query timeout to 30 seconds
src/pyams_content_es/shared/view/__init__.py
--- a/src/pyams_content_es/shared/view/__init__.py	Wed May 22 15:13:02 2019 +0200
+++ b/src/pyams_content_es/shared/view/__init__.py	Wed Sep 25 18:50:33 2019 +0200
@@ -82,6 +82,7 @@
             total_count = 0
         else:
             search = Search(using=client.es, index=client.index) \
+                .params(request_timeout=30) \
                 .query(params) \
                 .source(['internal_id'])
             # Define sort order