git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #93077 from RomanSharapov/add-configurable-keepalive

nixos/buildbot: enable configurable keepalive for buildbot worker

commit2e2cd5c0184b8080eee7570a992c0f5cbdf47eb7 authorFlorian Klink <flokli@flokli.de> dateMon 13 Jul 2020, 21:21 (6 years ago) parent1666b03d53d13b
1 file changed+10−1
nixos/modules/services/continuous-integration/buildbot/worker.nix+10−1
nixos/modules/services/continuous-integration/buildbot/worker.nix+10−1
@@ -29,7 +29,7 @@ let
2929
3030 with open('${cfg.workerPassFile}', 'r', encoding='utf-8') as passwd_file:
3131 passwd = passwd_file.read().strip('\r\n')
32− keepalive = 600
32+ keepalive = ${toString cfg.keepalive}
3333 umask = None
3434 maxdelay = 300
3535 numcpus = None
@@ -116,6 +116,15 @@ in {
116116 description = "Specifies the Buildbot Worker connection string.";
117117 };
118118
119+ keepalive = mkOption {
120+ default = 600;
121+ type = types.int;
122+ description = "
123+ This is a number that indicates how frequently keepalive messages should be sent
124+ from the worker to the buildmaster, expressed in seconds.
125+ ";
126+ };
127+
119128 package = mkOption {
120129 type = types.package;
121130 default = pkgs.python3Packages.buildbot-worker;