VALUES (?, ?, ?, ?, ?, ?, ? )
END
+ my $checkconstraints = sub {
+ $constraintsq->execute($hostname, $ttaskid);
+ $constraintsq->fetchrow_array() or confess "$hostname ?";
+ };
+
my $ojvn = "$ho->{Ident}_lifecycle";
if (length $r{$ojvn}) {
push @lifecycle, "$omarks$otj:$o->{stepno}$osuffix";
}
}
- $constraintsq->execute($hostname, $ttaskid);
- $constraintsq->fetchrow_array() or confess "$hostname ?";
if (defined $flight) {
$insertq->execute($hostname, $ttaskid,
undef,
undef,undef);
}
+ $checkconstraints->();
});
if (defined $flight) {