From 4ba537131f69b1ee4b2aae210c40b5618d72acae Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 1 Aug 2024 03:05:50 +0200 Subject: [PATCH] nixos/pretix: increases startup timeout Migrations on a busy machine can exceed 5 minutes, which I can reproduce on a busy builder. --- nixos/modules/services/web-apps/pretix.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/web-apps/pretix.nix b/nixos/modules/services/web-apps/pretix.nix index 0fb635964fe6..853611c41ef7 100644 --- a/nixos/modules/services/web-apps/pretix.nix +++ b/nixos/modules/services/web-apps/pretix.nix @@ -249,7 +249,7 @@ in }; host = mkOption { - type = with types; nullOr types.path; + type = with types; nullOr path; default = if cfg.settings.database.backend == "postgresql" then "/run/postgresql" else null; defaultText = literalExpression '' if config.services.pretix.settings..database.backend == "postgresql" then "/run/postgresql" @@ -535,7 +535,7 @@ in fi ''; serviceConfig = { - TimeoutStartSec = "5min"; + TimeoutStartSec = "15min"; ExecStart = "${getExe' pythonEnv "gunicorn"} --bind unix:/run/pretix/pretix.sock ${cfg.gunicorn.extraArgs} pretix.wsgi"; RuntimeDirectory = "pretix"; };