aboutsummaryrefslogtreecommitdiff
path: root/genenetwork-development.scm
diff options
context:
space:
mode:
authorArun Isaac2024-01-08 15:34:40 +0000
committerArun Isaac2024-01-08 15:34:40 +0000
commitdcd2f482e3d1be727d5cd4b764f83424bd14e483 (patch)
treedef676c8e6f74635b8d3236fc17152656297f5a4 /genenetwork-development.scm
parent4b3786b53f85223a8527e2fd39c7166471efd204 (diff)
downloadgn-machines-dcd2f482e3d1be727d5cd4b764f83424bd14e483.tar.gz
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.
Diffstat (limited to 'genenetwork-development.scm')
-rw-r--r--genenetwork-development.scm6
1 files changed, 5 insertions, 1 deletions
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 <genenetwork-configuration> 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