about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--genenetwork-development.scm6
-rw-r--r--genenetwork/services/genenetwork.scm3
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