From: Michael Tremer Date: Wed, 5 Feb 2025 10:19:51 +0000 (+0000) Subject: jobs: Don't abort when already aborted X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cff0a33ed3cd50d1896cb940c12f69214293ec6e;p=pbs.git jobs: Don't abort when already aborted Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/jobs.py b/src/buildservice/jobs.py index a3eab9bb..02532595 100644 --- a/src/buildservice/jobs.py +++ b/src/buildservice/jobs.py @@ -809,6 +809,10 @@ class Job(database.Base, database.BackendMixin, database.SoftDeleteMixin): """ Aborts the job """ + # Do nothing if already aborted + if self.is_aborted(): + return + # Tell the builder to abort the job try: await self.builder.send_message({