Disable the build-queued hook

This can take an excessive amount of time. For example, on
hydra.nixos.org, a call to hydra-notify takes 0.7s even if there are
no plugins. So for an eval with ~45K new builds, the calls to
hydra-notify add up to about 9 hours.

The proper fix would be to pass a list of build IDs, or an eval ID.
This commit is contained in:
Eelco Dolstra 2017-06-22 15:07:05 +02:00
parent 207d2dd10c
commit 803833aba7

View file

@ -737,9 +737,9 @@ sub checkJobsetWrapped {
Net::Statsd::increment("hydra.evaluator.evals");
Net::Statsd::increment("hydra.evaluator.cached_evals") unless $jobsetChanged;
while (my ($id, $x) = each %buildMap) {
system("hydra-notify build-queued $id") if $x->{new};
}
#while (my ($id, $x) = each %buildMap) {
# system("hydra-notify build-queued $id") if $x->{new};
#}
# Store the error messages for jobs that failed to evaluate.
my $msg = "";