make eval lock exclusive

looks like maxCount doesn't quite work
This commit is contained in:
Jörg Thalheim 2023-11-11 08:10:58 +01:00 committed by mergify[bot]
parent 4d71870239
commit 1719bf1810

View file

@ -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(