1
0
Fork 0

Make search timeouts configurable

This commit is contained in:
Mouse Reeve 2022-01-07 07:42:05 -08:00
parent 0ddecd7049
commit b18c69e186
5 changed files with 25 additions and 4 deletions

View file

@ -119,6 +119,12 @@ STREAMS = [
{"key": "books", "name": _("Books Timeline"), "shortname": _("Books")},
]
# Search configuration
# total time in seconds that the instance will spend searching connectors
SEARCH_TIMEOUT = int(env("SEARCH_TIMEOUT", 15))
# timeout for a query to an individual connector
QUERY_TIMEOUT = int(env("QUERY_TIMEOUT", 5))
# Redis cache backend
if env("USE_DUMMY_CACHE", False):
CACHES = {