From: Michael Tremer Date: Thu, 6 Feb 2025 16:25:54 +0000 (+0000) Subject: builds: Actually call the add_watcher() coroutine X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3eb4743b94f5fbf7514f77b3b3847e3a38e62528;p=pbs.git builds: Actually call the add_watcher() coroutine Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/builds.py b/src/buildservice/builds.py index 80345670..4de4fd19 100644 --- a/src/buildservice/builds.py +++ b/src/buildservice/builds.py @@ -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) diff --git a/src/buildservice/sources.py b/src/buildservice/sources.py index 5cf32932..e27c634a 100644 --- a/src/buildservice/sources.py +++ b/src/buildservice/sources.py @@ -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])