chiark / gitweb /
build: limit --all to 10 apps at a time
authorHans-Christoph Steiner <hans@eds.org>
Thu, 21 Dec 2017 22:15:08 +0000 (23:15 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Thu, 21 Dec 2017 22:15:34 +0000 (23:15 +0100)
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.

fdroidserver/build.py

index 3f428af789e3aaf86a0b4e19ae786edce7ee980f..9497747b120ca46a8971da72687902116b3ed6e1 100644 (file)
@@ -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