]> git.ipfire.org Git - pbs.git/commitdiff
monitoring: Store timestamp of the last check
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 23 May 2023 09:45:44 +0000 (09:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 23 May 2023 09:45:44 +0000 (09:45 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/releasemonitoring.py

index 2ae838f2a3053e8a4da46d89ea9fe43303d296ef..1f790ff1236e99512241addf9114f24d4d352482 100644 (file)
@@ -238,6 +238,9 @@ class Monitoring(base.DataObject):
                        versions = await self._fetch_versions()
 
                        with self.db.transaction():
+                               # Store timestamp of this check
+                               self._set_attribute_now("last_check_at")
+
                                try:
                                        if self.follow == "mainline":
                                                await self._follow_mainline(versions)