From a80dc256990dd4426ba9ea521771f2d93ad3cb2d Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Wed, 14 Jun 2023 10:30:02 +0200 Subject: [PATCH] [FIX] runbot: only top parent is marked killable --- runbot/models/runbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/models/runbot.py b/runbot/models/runbot.py index 476402f0..8f978031 100644 --- a/runbot/models/runbot.py +++ b/runbot/models/runbot.py @@ -119,7 +119,7 @@ class Runbot(models.AbstractModel): return for build in testing_builds: - if build.killable: + if build.top_parent.killable: build.top_parent._ask_kill(message='Build automatically killed, new build found.') def _allocate_builds(self, host, nb_slots, domain=None):