Don't wake up the queue runner for cached evals
This commit is contained in:
parent
401f5bdce2
commit
f5e5a1b96e
@ -237,6 +237,8 @@ sub checkJobsetWrapped {
|
|||||||
|
|
||||||
print STDERR " created new eval ", $ev->id, "\n";
|
print STDERR " created new eval ", $ev->id, "\n";
|
||||||
$ev->builds->update({iscurrent => 1});
|
$ev->builds->update({iscurrent => 1});
|
||||||
|
|
||||||
|
$db->storage->dbh->do("notify builds_added");
|
||||||
} else {
|
} else {
|
||||||
print STDERR " created cached eval ", $ev->id, "\n";
|
print STDERR " created cached eval ", $ev->id, "\n";
|
||||||
$prevEval->builds->update({iscurrent => 1}) if defined $prevEval;
|
$prevEval->builds->update({iscurrent => 1}) if defined $prevEval;
|
||||||
@ -246,8 +248,6 @@ sub checkJobsetWrapped {
|
|||||||
$jobset->update({ enabled => 0 }) if $jobset->enabled == 2;
|
$jobset->update({ enabled => 0 }) if $jobset->enabled == 2;
|
||||||
|
|
||||||
$jobset->update({ lastcheckedtime => time });
|
$jobset->update({ lastcheckedtime => time });
|
||||||
|
|
||||||
$db->storage->dbh->do("notify builds_added");
|
|
||||||
});
|
});
|
||||||
|
|
||||||
# Store the error messages for jobs that failed to evaluate.
|
# Store the error messages for jobs that failed to evaluate.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user