From 5962367ffc235d3c44dad8596c5984c9c1d95539 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Wed, 17 Aug 2016 06:40:12 -0400 Subject: [PATCH] Send BuildFinished notifications on cached build results. Fixes #342 --- src/hydra-queue-runner/queue-monitor.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hydra-queue-runner/queue-monitor.cc b/src/hydra-queue-runner/queue-monitor.cc index 3b3fb997..8a904b03 100644 --- a/src/hydra-queue-runner/queue-monitor.cc +++ b/src/hydra-queue-runner/queue-monitor.cc @@ -192,6 +192,8 @@ bool State::getQueuedBuilds(Connection & conn, ref localStore, nrBuildsDone++; } + enqueueNotificationItem({NotificationItem::Type::BuildFinished, build->id}); + return; } @@ -224,6 +226,8 @@ bool State::getQueuedBuilds(Connection & conn, ref localStore, build->finishedInDB = true; + enqueueNotificationItem({NotificationItem::Type::BuildFinished, build->id}); + return; }