From: Michael Tremer Date: Sat, 29 Apr 2023 09:08:33 +0000 (+0000) Subject: jobs: Perform dispatch operation in the background X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=615bd0ef07ff6c297908b8799cf40963a2553f90;p=pbs.git jobs: Perform dispatch operation in the background Signed-off-by: Michael Tremer --- diff --git a/src/web/jobs.py b/src/web/jobs.py index 3e248ef2..075ef673 100644 --- a/src/web/jobs.py +++ b/src/web/jobs.py @@ -85,7 +85,7 @@ class APIv1DetailHandler(base.APIMixin, tornado.websocket.WebSocketHandler): await self.job.finished(success=success, logfile=logfile, packages=packages) # Try to dispatch the next job - await self.backend.jobs.queue.dispatch() + self.backend.run_task(self.backend.jobs.queue.dispatch) class APIv1LogStreamHandler(base.BackendMixin, tornado.websocket.WebSocketHandler):