]> git.ipfire.org Git - pbs.git/commitdiff
jobs: Don't abort when already aborted
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 Feb 2025 10:19:51 +0000 (10:19 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 Feb 2025 10:19:51 +0000 (10:19 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/jobs.py

index a3eab9bb433d44dc0deca0b2e346379b6d352c5b..02532595cfc1fa6c967d5402dc1a70853592e59f 100644 (file)
@@ -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({