aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/constants.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2021-09-03 10:40:16 +0100
committerGravatar Chris Lovering <[email protected]>2021-09-03 12:48:43 +0100
commitfa68a1063d4de205cb34c1f17eda62926b23b9db (patch)
tree8ce363e66356d6df9a80365afd903487929415f0 /pydis_site/constants.py
parentMerge pull request #571 from Numerlor/doc-blank-base_url (diff)
Timeout when fetching GitHub repository metadata
Not having this timeout could cause a worker to hang indefinitely
Diffstat (limited to 'pydis_site/constants.py')
-rw-r--r--pydis_site/constants.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pydis_site/constants.py b/pydis_site/constants.py
index e6a63d12..e913f40f 100644
--- a/pydis_site/constants.py
+++ b/pydis_site/constants.py
@@ -2,3 +2,5 @@ import os
GIT_SHA = os.environ.get("GIT_SHA", "development")
GITHUB_TOKEN = os.environ.get("GITHUB_TOKEN")
+# How long to wait for synchronous requests before timing out
+TIMEOUT_PERIOD = int(os.environ.get("TIMEOUT_PERIOD", 5))