hydra-notify: Create a helper for running each plugin on an event

[?]
Aug 12, 2021, 4:53 PM
FN3QFV6VB2BPYLKNYBUCV7HTSXCLKKLBD43TSEQUZNNAJVQACDZQC

Dependencies

  • [2] P4SME2BC Abstract over postgres' LISTEN/NOTIFY
  • [*] IE2PRAQU hydra-queue-runner: Send build notifications
  • [*] 32KJOERM Turn hydra-notify into a daemon

Change contents

  • edit in src/script/hydra-notify at line 33
    [2.1922]
    [5.1591]
    sub runPluginsForEvent {
    my ($event) = @_;
  • edit in src/script/hydra-notify at line 37
    [5.1592]
    [5.1592]
    foreach my $plugin (@plugins) {
    eval {
    $event->execute($db, $plugin);
    1;
    } or do {
    print STDERR "error running $event->{'channel_name'} hooks: $@\n";
    }
    }
    }