From: Michael Tremer Date: Mon, 10 Feb 2025 15:31:15 +0000 (+0000) Subject: jobs: Abort when the build job has crashed X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=05503f86815a4e9775d761740d0ad20db5660809;p=pbs.git jobs: Abort when the build job has crashed I think we want to collect a little bit more meta information about the crash, but for now we at least see that something has aborted the job. Signed-off-by: Michael Tremer --- diff --git a/src/web/jobs.py b/src/web/jobs.py index 4d2b1369..14777c87 100644 --- a/src/web/jobs.py +++ b/src/web/jobs.py @@ -112,7 +112,8 @@ class APIv1CrashedHandler(base.APIMixin, base.BackendMixin): log.error("%s has been killed with signal %s" % (job, signo)) - # XXX TODO + # Automatically abort the job + await job.abort() # Send an empty response self.set_status(204)