]> git.ipfire.org Git - pbs.git/commitdiff
builds: Actually call the add_watcher() coroutine
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Feb 2025 16:25:54 +0000 (16:25 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Feb 2025 16:26:48 +0000 (16:26 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/builds.py
src/buildservice/sources.py

index 803456702566bf57d33dd0354455ef92727bc93f..4de4fd19399b66cb94d36ce567f004afa9d093f7 100644 (file)
@@ -676,7 +676,7 @@ class Build(database.Base, database.BackendMixin, database.SoftDeleteMixin):
                """
                # Add the owner of the build (if any)
                if self.owner:
-                       self.add_watcher(self.owner)
+                       await self.add_watcher(self.owner)
 
                # XXX extract any watchers from the commit message (if any)
 
index 5cf329328db028382d1d79d4fbe89bc1b2568ea4..e27c634a2952fec7d2882478e428f05bc23b9cef 100644 (file)
@@ -769,7 +769,7 @@ class SourceJob(database.Base, database.BackendMixin):
 
                        # Add any watchers
                        for user in self.commit.get_watchers():
-                               build.add_watcher(user)
+                               await build.add_watcher(user)
 
                        # Launch the build
                        await self.backend.builds.launch([build])