From: Hans-Christoph Steiner Date: Thu, 21 Dec 2017 22:15:08 +0000 (+0100) Subject: build: limit --all to 10 apps at a time X-Git-Tag: 1.0.0~16^2 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=afc5cc6b6a969bb1f12eb325df436eaadac53099;p=fdroidserver.git build: limit --all to 10 apps at a time This needed now because the buildserver is hanging so often, that we are often going a week or more without any builds published. Perhaps this is only temporary, or maybe we will want to flush this feature out more as a standard thing. But we really need it for now to at least get some builds out on a daily basis. Since the website deploy is also triggered by this cycle, making the build finish more often means the website will be published more often. --- diff --git a/fdroidserver/build.py b/fdroidserver/build.py index 3f428af7..9497747b 100644 --- a/fdroidserver/build.py +++ b/fdroidserver/build.py @@ -1164,7 +1164,11 @@ def main(): # Build applications... failed_apps = {} build_succeeded = [] + max_apps_per_run = 10 for appid, app in apps.items(): + max_apps_per_run -= 1 + if max_apps_per_run < 1: + break first = True