From dcd2f482e3d1be727d5cd4b764f83424bd14e483 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 8 Jan 2024 15:34:40 +0000 Subject: Increase gunicorn timeout for genenetwork3. * genenetwork-development.scm (genenetwork3-cd-gexp): Increase gunicorn timeout to 1200 seconds. * genenetwork/services/genenetwork.scm (genenetwork-gunicorn-apps): Add TODO note to increase gunicorn timeout to 1200 seconds. --- genenetwork-development.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'genenetwork-development.scm') diff --git a/genenetwork-development.scm b/genenetwork-development.scm index 5848ae5..9afa8d2 100644 --- a/genenetwork-development.scm +++ b/genenetwork-development.scm @@ -520,7 +520,11 @@ server described by CONFIG, a object." (show-head-commit) (invoke #$(file-append gunicorn "/bin/gunicorn") "-b" #$(string-append "localhost:" (number->string gn3-port)) - "gn3.app:create_app()")))))))) + "gn3.app:create_app()" + ;; gunicorn's default 30 second timeout is + ;; insufficient for Fahamu AI endpoints and + ;; results in worker timeout errors. + "--timeout" "1200")))))))) (define (gn-auth-cd-gexp config) "Return a G-expression that runs the latest gn-auth development -- cgit v1.2.3