From: Michael Tremer Date: Mon, 17 Feb 2025 11:44:47 +0000 (+0000) Subject: jobs: Fix sending emails if a job fails X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f793729608d481054347d99347585b40cbf71e6;p=pbs.git jobs: Fix sending emails if a job fails Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/jobs.py b/src/buildservice/jobs.py index 2c80fce8..a424f206 100644 --- a/src/buildservice/jobs.py +++ b/src/buildservice/jobs.py @@ -696,7 +696,7 @@ class Job(database.Base, database.BackendMixin, database.SoftDeleteMixin): # Notify the owner if self.build.owner: # Send an email - self.build.owner.send_email( + await self.build.owner.send_email( "jobs/messages/failed.txt", job=self, build=self.build,