1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-20 13:50:12 +01:00

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.
This commit is contained in:
Hans-Christoph Steiner 2017-12-21 23:15:08 +01:00
parent c29d135de1
commit afc5cc6b6a

View File

@ -1164,7 +1164,11 @@ def main():
# Build applications... # Build applications...
failed_apps = {} failed_apps = {}
build_succeeded = [] build_succeeded = []
max_apps_per_run = 10
for appid, app in apps.items(): for appid, app in apps.items():
max_apps_per_run -= 1
if max_apps_per_run < 1:
break
first = True first = True