Set notificationpendingsince for dependent builds

build_finished Postgres event will never be fired for the dependent builds.

For example, on our Hydra, the following query always returns increasing numbers, even though all notifications have been delivered:

hydra=> select count(1) from builds where notificationpendingsince is not null;
 count
-------
  4583
(1 row)

Thus, we have to iterate over all dependent builds and mark their notificationpendingsince as null, otherwise they will pile up until the next restart of hydra-notify, when they will get delivered.

Created by  Nikola Knezevic  on May 28, 2020
OEQQ6CVTBZBTSCU6IT7ZRIPRTYUJLM7BT435EL5TGBVBEA5AT7PQC
Change contents