From 6dea73b9cca77015097058a8cd88a1a13d49df54 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 5 Jul 2022 03:47:06 +0000 Subject: [PATCH] Increase subprocess docker timeout --- authserver/auth_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authserver/auth_functions.py b/authserver/auth_functions.py index ff73138..e0ae1da 100644 --- a/authserver/auth_functions.py +++ b/authserver/auth_functions.py @@ -84,7 +84,7 @@ def discourse_api_delete(url, data={}): def discourse_rails_script(script): result = subprocess.run(['docker', 'exec', '-i', secrets.DISCOURSE_CONTAINER, 'rails', 'runner', script], - shell=False, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + shell=False, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=30) output = result.stdout or result.stderr output = output.strip() or 'No complaints' return result, output