Sort notification classes / events
This commit is contained in:
parent
7b7c03a521
commit
8a18326f2b
|
@ -2,20 +2,20 @@ package Hydra::Event;
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Hydra::Event::CachedBuildFinished;
|
||||
use Hydra::Event::CachedBuildQueued;
|
||||
use Hydra::Event::BuildFinished;
|
||||
use Hydra::Event::BuildQueued;
|
||||
use Hydra::Event::BuildStarted;
|
||||
use Hydra::Event::CachedBuildFinished;
|
||||
use Hydra::Event::CachedBuildQueued;
|
||||
use Hydra::Event::StepFinished;
|
||||
|
||||
my %channels_to_events = (
|
||||
build_finished => \&Hydra::Event::BuildFinished::parse,
|
||||
build_queued => \&Hydra::Event::BuildQueued::parse,
|
||||
build_started => \&Hydra::Event::BuildStarted::parse,
|
||||
step_finished => \&Hydra::Event::StepFinished::parse,
|
||||
build_finished => \&Hydra::Event::BuildFinished::parse,
|
||||
cached_build_finished => \&Hydra::Event::CachedBuildFinished::parse,
|
||||
cached_build_queued => \&Hydra::Event::CachedBuildQueued::parse,
|
||||
step_finished => \&Hydra::Event::StepFinished::parse,
|
||||
);
|
||||
|
||||
|
||||
|
|
|
@ -17,14 +17,14 @@ path_input_cache_validity_seconds = 0
|
|||
my $dbh = $ctx->db()->storage->dbh;
|
||||
my $listener = Hydra::PostgresListener->new($dbh);
|
||||
|
||||
$listener->subscribe("build_queued");
|
||||
$listener->subscribe("builds_added");
|
||||
$listener->subscribe("cached_build_finished");
|
||||
$listener->subscribe("cached_build_queued");
|
||||
$listener->subscribe("build_queued");
|
||||
$listener->subscribe("eval_failed");
|
||||
$listener->subscribe("eval_cached");
|
||||
$listener->subscribe("eval_added");
|
||||
$listener->subscribe("eval_cached");
|
||||
$listener->subscribe("eval_failed");
|
||||
$listener->subscribe("eval_started");
|
||||
$listener->subscribe("builds_added");
|
||||
|
||||
|
||||
my $jobsetdir = $ctx->tmpdir . '/jobset';
|
||||
|
|
Loading…
Reference in a new issue