From 803833aba77e1082c14857aa26933fc7fe5ae190 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 22 Jun 2017 15:07:05 +0200 Subject: [PATCH] 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. --- src/script/hydra-eval-jobset | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/script/hydra-eval-jobset b/src/script/hydra-eval-jobset index f64d3fe2e..7b2809459 100755 --- a/src/script/hydra-eval-jobset +++ b/src/script/hydra-eval-jobset @@ -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 = "";