Merge pull request #1457 from dermetfan/fix-1429

hydra-eval-jobset: do not wait on n-e-j inside transaction
This commit is contained in:
Jörg Thalheim 2025-03-29 11:36:13 +01:00 committed by GitHub
commit b657bcdfb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -773,6 +773,9 @@ sub checkJobsetWrapped {
my $jobsetChanged = 0;
my %buildMap;
my @jobs;
push @jobs, $_ while defined($_ = $jobsIter->());
$db->txn_do(sub {
my $prevEval = getPrevJobsetEval($db, $jobset, 1);
@ -796,7 +799,7 @@ sub checkJobsetWrapped {
my @jobsWithConstituents;
while (defined(my $job = $jobsIter->())) {
foreach my $job (@jobs) {
if ($jobsetsJobset) {
die "The .jobsets jobset must only have a single job named 'jobsets'"
unless $job->{attr} eq "jobsets";