From: Michael Tremer Date: Fri, 28 Apr 2023 10:23:58 +0000 (+0000) Subject: builders: autoscale: Use build time of 1m if none is available X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e15f1a036eb4feb39a7a4edf14c4746445c169bc;p=pbs.git builders: autoscale: Use build time of 1m if none is available Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/builders.py b/src/buildservice/builders.py index c900a8a3..4417e50c 100644 --- a/src/buildservice/builders.py +++ b/src/buildservice/builders.py @@ -128,7 +128,7 @@ class Builders(base.Object): log.debug("Builder %s can build %s" % (builder, job)) # Add the job to the total build time - queue[builder] += job.estimated_build_time + queue[builder] += job.estimated_build_time or datetime.timedelta(60) break # Find all builders that should be running