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 +++++- genenetwork/services/genenetwork.scm | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 diff --git a/genenetwork/services/genenetwork.scm b/genenetwork/services/genenetwork.scm index 966592d..9249dd9 100644 --- a/genenetwork/services/genenetwork.scm +++ b/genenetwork/services/genenetwork.scm @@ -195,6 +195,9 @@ object." (source gn2-secrets) (target source))))) (gunicorn-app + ;; TODO: gunicorn's default 30 second timeout is + ;; insufficient for Fahamu AI endpoints and results in + ;; worker timeout errors. Set timeout to 1200 seconds. (name "genenetwork3") (package genenetwork3) (sockets (list (forge-ip-socket -- cgit v1.2.3