From e4965e5540fcf29a035af544aa3b420406bf494d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 30 Nov 2023 09:14:19 +0100 Subject: [PATCH] worker: don't kill service when a process takes too much RAM --- nix/worker.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/worker.nix b/nix/worker.nix index 2fdf3eb..37c7f8c 100644 --- a/nix/worker.nix +++ b/nix/worker.nix @@ -66,6 +66,10 @@ in environment.BUILDBOT_DIR = buildbotDir; 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}" ]; Environment = [ "WORKER_PASSWORD_FILE=%d/worker-password-file" ]; Type = "simple";