Don't wake up the queue runner for cached evals

This commit is contained in:
Eelco Dolstra 2015-06-26 20:59:14 +02:00
parent 401f5bdce2
commit f5e5a1b96e

View file

@ -237,6 +237,8 @@ sub checkJobsetWrapped {
print STDERR " created new eval ", $ev->id, "\n";
$ev->builds->update({iscurrent => 1});
$db->storage->dbh->do("notify builds_added");
} else {
print STDERR " created cached eval ", $ev->id, "\n";
$prevEval->builds->update({iscurrent => 1}) if defined $prevEval;
@ -246,8 +248,6 @@ sub checkJobsetWrapped {
$jobset->update({ enabled => 0 }) if $jobset->enabled == 2;
$jobset->update({ lastcheckedtime => time });
$db->storage->dbh->do("notify builds_added");
});
# Store the error messages for jobs that failed to evaluate.