hydra-eval-jobset: disable eval cache

This commit is contained in:
Jörg Thalheim
2025-08-28 12:01:21 +02:00
committed by ahuston-0
parent 7321b29196
commit 5b4d0b6f4b

View File

@@ -366,7 +366,13 @@ sub evalJobs {
"or flake.checks " . "or flake.checks " .
"or (throw \"flake '$flakeRef' does not provide any Hydra jobs or checks\")"; "or (throw \"flake '$flakeRef' does not provide any Hydra jobs or checks\")";
@cmd = ("nix-eval-jobs", "--expr", $nix_expr); @cmd = ("nix-eval-jobs",
# Disable the eval cache to prevent SQLite database contention.
# Since Hydra typically evaluates each revision only once,
# parallel workers would compete for database locks without
# providing any benefit from caching.
"--option", "eval-cache", "false",
"--expr", $nix_expr);
} else { } else {
my $nixExprInput = $inputInfo->{$nixExprInputName}->[0] my $nixExprInput = $inputInfo->{$nixExprInputName}->[0]
or die "cannot find the input containing the job expression\n"; or die "cannot find the input containing the job expression\n";