Increase auth server API timeout

This commit is contained in:
Tanner Collin 2021-09-05 00:52:52 +00:00
parent 77def611cc
commit 7dfc32f4df

View File

@ -16,7 +16,7 @@ def discourse_is_configured():
def auth_api(url, data):
try:
headers = {'Authorization': 'Token ' + secrets.AUTH_API_KEY}
r = requests.post(url, data=data, headers=headers, timeout=3)
r = requests.post(url, data=data, headers=headers, timeout=20)
return r.status_code
except BaseException as e:
logger.error('Auth {} - {} - {}'.format(url, e.__class__.__name__, str(e)))