Merge pull request #47 from Mic92/fixes

worker: don't kill service when a process takes too much RAM
This commit is contained in:
Jörg Thalheim 2023-11-30 09:57:48 +01:00 committed by GitHub
commit 42be578008
Failed to generate hash of commit

View file

@ -66,6 +66,10 @@ in
environment.BUILDBOT_DIR = buildbotDir; environment.BUILDBOT_DIR = buildbotDir;
serviceConfig = { serviceConfig = {
# We rather want the CI job to fail on OOM than to have a broken buildbot worker.
# Otherwise we might end up restarting the worker and the same job is run again.
OOMPolicy = "continue";
LoadCredential = [ "worker-password-file:${cfg.workerPasswordFile}" ]; LoadCredential = [ "worker-password-file:${cfg.workerPasswordFile}" ];
Environment = [ "WORKER_PASSWORD_FILE=%d/worker-password-file" ]; Environment = [ "WORKER_PASSWORD_FILE=%d/worker-password-file" ];
Type = "simple"; Type = "simple";