Jobs: populate Jobs.jobset_id field when writing from hydra-eval-jobset

This commit is contained in:
Graham Christensen 2020-02-05 17:30:11 -05:00
parent efa1f1d4fb
commit 624f1d8d2d
No known key found for this signature in database
GPG key ID: FE918C3A98C1030F

View file

@ -417,7 +417,12 @@ sub checkBuild {
my $build; my $build;
txn_do($db, sub { txn_do($db, sub {
my $job = $jobset->jobs->update_or_create({ name => $jobName }); my $job = $jobset->jobs->update_or_create({
name => $jobName,
jobset_id => $jobset->id,
project => $jobset->project,
jobset => $jobset->name,
});
# Don't add a build that has already been scheduled for this # Don't add a build that has already been scheduled for this
# job, or has been built but is still a "current" build for # job, or has been built but is still a "current" build for