From: Michael Tremer Date: Fri, 18 Aug 2023 10:05:02 +0000 (+0000) Subject: builds: Immediately launch builds in the transaction X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97d1dea34e482e631e94a9752aee04078a3b63e7;p=pbs.git builds: Immediately launch builds in the transaction Signed-off-by: Michael Tremer --- diff --git a/src/web/builds.py b/src/web/builds.py index 1440f1c6..5835d8a8 100644 --- a/src/web/builds.py +++ b/src/web/builds.py @@ -58,15 +58,15 @@ class APIv1IndexHandler(base.APIMixin, base.BaseHandler): # Delete the upload await upload.delete() + # Launch the build + await self.backend.builds.launch([build]) + # Send some data about the build self.finish({ - "uuid" : build.uuid, + "uuid" : "%s" % build.uuid, "name" : "%s" % build, }) - # Launch all jobs (in the background) - self.backend.run_task(self.backend.builds.launch, [build]) - class IndexHandler(base.BaseHandler): def get(self):