Skip to content

Commit

Permalink
Merge pull request #382 from shlevy/cached-build-notifications
Browse files Browse the repository at this point in the history
Send BuildFinished notifications on cached build results.
  • Loading branch information
edolstra committed Mar 29, 2017
2 parents 57bc0ea + 5962367 commit 8771f7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hydra-queue-runner/queue-monitor.cc
Expand Up @@ -193,6 +193,8 @@ bool State::getQueuedBuilds(Connection & conn,
nrBuildsDone++;
}

enqueueNotificationItem({NotificationItem::Type::BuildFinished, build->id});

return;
}

Expand Down Expand Up @@ -225,6 +227,8 @@ bool State::getQueuedBuilds(Connection & conn,

build->finishedInDB = true;

enqueueNotificationItem({NotificationItem::Type::BuildFinished, build->id});

return;
}

Expand Down

0 comments on commit 8771f7f

Please sign in to comment.