From: Michael Tremer Date: Fri, 28 Apr 2023 10:24:59 +0000 (+0000) Subject: jobs: Run dispatch after abort X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8fde3addb5ec0ea4a994881d12372f78202a450;p=pbs.git jobs: Run dispatch after abort The builder might have lost the connection so it won't get the abort message. Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/jobs.py b/src/buildservice/jobs.py index da94fe42..48721409 100644 --- a/src/buildservice/jobs.py +++ b/src/buildservice/jobs.py @@ -511,6 +511,9 @@ class Job(base.DataObject): if user: self._set_attribute("aborted_by", user) + # Try to dispatch more jobs in the background + self.backend.run_task(self.backend.jobs.queue.dispatch) + def is_aborted(self): """ Returns True if this job has been aborted