From c30c6e956903aec533d1824e6fad140084442b40 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 8 Jan 2024 18:31:23 +0000 Subject: gunicorn: Support worker timeout parameter. * guix/forge/gunicorn.scm ()[timeout]: New field. * guix/forge/gunicorn.scm (gunicorn-shepherd-services): Pass --timeout parameter. * doc/forge.skb (Reference)[Specialized application deployment services]{gunicorn service}: Document timeout field. --- guix/forge/gunicorn.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'guix') diff --git a/guix/forge/gunicorn.scm b/guix/forge/gunicorn.scm index 9f5b2b2..148bd53 100644 --- a/guix/forge/gunicorn.scm +++ b/guix/forge/gunicorn.scm @@ -1,5 +1,5 @@ ;;; guix-forge --- Guix software forge meta-service -;;; Copyright © 2023 Arun Isaac +;;; Copyright © 2023–2024 Arun Isaac ;;; ;;; This file is part of guix-forge. ;;; @@ -50,6 +50,7 @@ gunicorn-app-wsgi-app-module gunicorn-app-sockets gunicorn-app-workers + gunicorn-app-timeout gunicorn-app-environment-variables gunicorn-app-mappings)) @@ -78,6 +79,8 @@ (default 1)) (environment-variables gunicorn-app-environment-variables (default '())) + (timeout gunicorn-app-timeout + (default 30)) (mappings gunicorn-app-mappings (default '()))) @@ -183,6 +186,7 @@ ;; https://yhetil.org/guix/m1ilknoi5r.fsf@fastmail.net/ #:namespaces (delq 'net %namespaces)) "--workers" #$(number->string (gunicorn-app-workers app)) + "--timeout" #$(number->string (gunicorn-app-timeout app)) (list #$@(append (append-map (lambda (socket) (list "--bind" (socket->gunicorn-bind socket))) -- cgit v1.2.3