worker: don't kill service when a process takes too much RAM
This commit is contained in:
parent
b50b9ededa
commit
e4965e5540
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue