Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Set notificationpendingsince for dependent builds #771

Merged
merged 1 commit into from May 28, 2020
Merged

Fix: Set notificationpendingsince for dependent builds #771

merged 1 commit into from May 28, 2020

Conversation

knl
Copy link
Contributor

@knl knl commented May 28, 2020

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.

`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.
@knl knl changed the title Set notificationpendingsince for dependent builds Fix: Set notificationpendingsince for dependent builds May 28, 2020
@edolstra edolstra merged commit d584489 into NixOS:master May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants