From f864a16d564517ee48ce879d0153a63b6543bcf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlia=20Mir=20Pedrol?= Date: Mon, 16 Sep 2024 15:01:41 +0000 Subject: [PATCH] add resourceLimits to self_hosted_runner profile --- conf/self_hosted_runner.config | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/conf/self_hosted_runner.config b/conf/self_hosted_runner.config index a485cf02a..96627f154 100644 --- a/conf/self_hosted_runner.config +++ b/conf/self_hosted_runner.config @@ -8,11 +8,21 @@ params { // General cpus/memory/time requirements + // WARNING: This will be deprecated from the pipeline template in favour of resourceLimits + // Keeping the parameters for backwards compatibility max_cpus = 2 max_memory = 7.GB max_time = 72.h } +process { + resourceLimits = [ + cpus: 2, + memory: '7.GB', + time: '72.h' + ] +} + docker { enabled = true fixOwnership = true