Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/get-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-13 10:45:02 +0200
committerErich Eckner <git@eckner.net>2017-09-13 10:45:02 +0200
commitcea5727be1cd69dd721afccdba462ee5e242df44 (patch)
treec9c7f6c0bd6c5c2e75b1436e8102425006bfcdbe /bin/get-assignment
parentef1582777fff756ed391b403266b3bbbabb182a0 (diff)
remove "max_parallel_build_per_client" - every client should run only one build job! - but hand out an old, locked assignment again to the same build slave
Diffstat (limited to 'bin/get-assignment')
-rwxr-xr-xbin/get-assignment13
1 files changed, 3 insertions, 10 deletions
diff --git a/bin/get-assignment b/bin/get-assignment
index bb9cb40..fb35c0c 100755
--- a/bin/get-assignment
+++ b/bin/get-assignment
@@ -10,8 +10,6 @@
# but currently none has all its dependencies ready
# 3: come back after the next run of get-package-updates - currently
# there are no pending packages
-# 4: come back, when you've done your work - you hit the limit on
-# maximum allowed parallel jobs per ip
# TODO:
@@ -75,9 +73,8 @@ clean_up() {
trap clean_up EXIT
# Check if there are any pending packages at all and if the requester
-# has already hit its max_parallel_build_per_client limit.
+# has already got an assignment.
-num_jobs=0
pending_packages=false
while read -r package git_revision mod_git_revision repository; do
@@ -96,7 +93,8 @@ while read -r package git_revision mod_git_revision repository; do
if [ -f "${work_dir}/package-states/${package}.${git_revision}.${mod_git_revision}.${repository}.locked" ];
then
if [ "${slave}" = "$(head -n1 "${work_dir}/package-states/${package}.${git_revision}.${mod_git_revision}.${repository}.locked")" ]; then
- num_jobs=$((num_jobs+1));
+ echo "${package} ${git_revision} ${mod_git_revision} ${repository}"
+ exit
fi
else
pending_packages=true
@@ -109,11 +107,6 @@ if ! ${pending_packages}; then
exit 3
fi
-if [ ${num_jobs} -ge ${max_parallel_build_per_client} ]; then
- >&2 echo "come back, when you've done your work - you hit the limit on maximum allowed parallel jobs per ip"
- exit 4
-fi
-
# Find first package of build-list whose dependencies are all met
for hand_out_broken in false true; do