Skip to content

Commit b8a7ec5

Browse files
authored
feat: increase timeout (#181)
* feat: increase timeout * feat: increase GRAPHQL_TIMEOUT to match uWSGI
1 parent e1268bf commit b8a7ec5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

deployment/uwsgi/uwsgi.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ harakiri-verbose = true
1111
# No global HARAKIRI, using only user HARAKIRI, because export overwrites it
1212
# Cannot overwrite global HARAKIRI with user's: https://git.io/fjYuD
1313
# harakiri = 45
14-
http-timeout = 45
15-
socket-timeout = 45
14+
http-timeout = 600
15+
socket-timeout = 600
1616
worker-reload-mercy = 45
1717
reload-mercy = 45
1818
mule-reload-mercy = 45

peregrine/resources/submission/graphql/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from .util import set_session_timeout
3333

3434

35-
GRAPHQL_TIMEOUT = float(os.environ.get("GRAPHQL_TIMEOUT", 20)) # seconds
35+
GRAPHQL_TIMEOUT = float(os.environ.get("GRAPHQL_TIMEOUT", 600)) # seconds
3636
TIMEOUT_MESSAGE = """
3737
3838
Query exceeded {} second timeout. Please reduce query complexity and

0 commit comments

Comments
 (0)