diff options
author | Arun Isaac | 2024-01-08 15:34:40 +0000 |
---|---|---|
committer | Arun Isaac | 2024-01-08 15:34:40 +0000 |
commit | dcd2f482e3d1be727d5cd4b764f83424bd14e483 (patch) | |
tree | def676c8e6f74635b8d3236fc17152656297f5a4 | |
parent | 4b3786b53f85223a8527e2fd39c7166471efd204 (diff) | |
download | gn-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.
-rw-r--r-- | genenetwork-development.scm | 6 | ||||
-rw-r--r-- | genenetwork/services/genenetwork.scm | 3 |
2 files changed, 8 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 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 |