aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/nixos/modules/services/continuous-integration/buildbot/worker.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/nixos/modules/services/continuous-integration/buildbot/worker.nix')
-rw-r--r--nixpkgs/nixos/modules/services/continuous-integration/buildbot/worker.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/nixpkgs/nixos/modules/services/continuous-integration/buildbot/worker.nix b/nixpkgs/nixos/modules/services/continuous-integration/buildbot/worker.nix
index 52f24b8cee3..7b8a35f54bf 100644
--- a/nixpkgs/nixos/modules/services/continuous-integration/buildbot/worker.nix
+++ b/nixpkgs/nixos/modules/services/continuous-integration/buildbot/worker.nix
@@ -29,7 +29,7 @@ let
with open('${cfg.workerPassFile}', 'r', encoding='utf-8') as passwd_file:
passwd = passwd_file.read().strip('\r\n')
- keepalive = 600
+ keepalive = ${toString cfg.keepalive}
umask = None
maxdelay = 300
numcpus = None
@@ -116,6 +116,15 @@ in {
description = "Specifies the Buildbot Worker connection string.";
};
+ keepalive = mkOption {
+ default = 600;
+ type = types.int;
+ description = "
+ This is a number that indicates how frequently keepalive messages should be sent
+ from the worker to the buildmaster, expressed in seconds.
+ ";
+ };
+
package = mkOption {
type = types.package;
default = pkgs.python3Packages.buildbot-worker;