From 1719bf181040a7cb00a9cfb63119db48d2b62109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 11 Nov 2023 08:10:58 +0100 Subject: [PATCH] make eval lock exclusive looks like maxCount doesn't quite work --- buildbot_nix/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildbot_nix/__init__.py b/buildbot_nix/__init__.py index ae40de9..d4ffe35 100644 --- a/buildbot_nix/__init__.py +++ b/buildbot_nix/__init__.py @@ -455,7 +455,7 @@ def nix_eval_config( ".#checks", ], haltOnFailure=True, - locks=[eval_lock.access("counting")], + locks=[eval_lock.access("exclusive")], ) ) @@ -743,7 +743,7 @@ class NixConfigurator(ConfiguratorBase): worker_names.append(worker_name) webhook_secret = read_secret_file(self.github.webhook_secret_name) - eval_lock = util.WorkerLock("nix-eval", maxCount=1) + eval_lock = util.WorkerLock("nix-eval") for project in projects: create_project_hook(