Merge pull request #47 from Mic92/fixes
worker: don't kill service when a process takes too much RAM
This commit is contained in:
commit
42be578008
|
@ -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