hydra-notify: sort subscriptions

This commit is contained in:
Graham Christensen 2022-01-10 19:45:57 -05:00
parent 4da80e736e
commit 96b2200895

View file

@ -93,11 +93,11 @@ my $task_dispatcher = Hydra::TaskDispatcher->new(
my $dbh = $db->storage->dbh; my $dbh = $db->storage->dbh;
my $listener = Hydra::PostgresListener->new($dbh); my $listener = Hydra::PostgresListener->new($dbh);
$listener->subscribe("build_finished");
$listener->subscribe("build_queued"); $listener->subscribe("build_queued");
$listener->subscribe("build_started"); $listener->subscribe("build_started");
$listener->subscribe("build_finished");
$listener->subscribe("step_finished");
$listener->subscribe("hydra_notify_dump_metrics"); $listener->subscribe("hydra_notify_dump_metrics");
$listener->subscribe("step_finished");
# Process builds that finished while hydra-notify wasn't running. # Process builds that finished while hydra-notify wasn't running.
for my $build ($db->resultset('Builds')->search( for my $build ($db->resultset('Builds')->search(