From: Michael Tremer Date: Mon, 20 Jun 2022 17:19:25 +0000 (+0000) Subject: hub: Perform autoscale algorithm on start X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73d62e8e9a9e4dbb1ceab5ff51bc91a759164072;p=pbs.git hub: Perform autoscale algorithm on start Signed-off-by: Michael Tremer --- diff --git a/src/hub/__init__.py b/src/hub/__init__.py index e99d91de..f972c518 100644 --- a/src/hub/__init__.py +++ b/src/hub/__init__.py @@ -64,6 +64,7 @@ class Application(tornado.web.Application): # Perform some initial tasks self._run_task(self.backend.builders.sync) + self._run_task(self.backend.builders.autoscale) def _run_task(self, callback, t=None): """ diff --git a/src/hub/queue.py b/src/hub/queue.py index 1a8054e2..f2d42ce9 100644 --- a/src/hub/queue.py +++ b/src/hub/queue.py @@ -34,9 +34,6 @@ async def dispatch_jobs(backend): Will be called regularly and will dispatch any pending jobs to any available builders """ - # Perform any autoscaling action - await backend.builders.autoscale() - log.debug("Dispatching jobs...") # Exit if there are no builders connected