nixos/pretix: increases startup timeout
Migrations on a busy machine can exceed 5 minutes, which I can reproduce on a busy builder.
This commit is contained in:
parent
63f15b89de
commit
4ba537131f
@ -249,7 +249,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
host = mkOption {
|
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;
|
default = if cfg.settings.database.backend == "postgresql" then "/run/postgresql" else null;
|
||||||
defaultText = literalExpression ''
|
defaultText = literalExpression ''
|
||||||
if config.services.pretix.settings..database.backend == "postgresql" then "/run/postgresql"
|
if config.services.pretix.settings..database.backend == "postgresql" then "/run/postgresql"
|
||||||
@ -535,7 +535,7 @@ in
|
|||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
TimeoutStartSec = "5min";
|
TimeoutStartSec = "15min";
|
||||||
ExecStart = "${getExe' pythonEnv "gunicorn"} --bind unix:/run/pretix/pretix.sock ${cfg.gunicorn.extraArgs} pretix.wsgi";
|
ExecStart = "${getExe' pythonEnv "gunicorn"} --bind unix:/run/pretix/pretix.sock ${cfg.gunicorn.extraArgs} pretix.wsgi";
|
||||||
RuntimeDirectory = "pretix";
|
RuntimeDirectory = "pretix";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user