hydra-queue-runner: Make build notification more reliable
Previously, when hydra-queue-runner was restarted, any pending "build finished" notifications were lost. Now hydra-queue-runner marks finished but unnotified builds in the database and uses that to run pending notifications at startup.
This commit is contained in:
3
src/sql/upgrade-55.sql
Normal file
3
src/sql/upgrade-55.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
alter table Builds add column notificationPendingSince integer;
|
||||
|
||||
create index IndexBuildsOnNotificationPendingSince on Builds(notificationPendingSince) where notificationPendingSince is not null;
|
||||
Reference in New Issue
Block a user