summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-01 11:19:05 +0200
committerErich Eckner <git@eckner.net>2018-06-01 11:19:05 +0200
commit2944fd6d91d437147521c48b6c9d30ab50755152 (patch)
tree19ff45c8a74f0ffe5c86da59b38246d01c417283 /bin
parent265d12032a1f1fb1b177444d86e90ace5c244c2a (diff)
downloadbuilder-2944fd6d91d437147521c48b6c9d30ab50755152.tar.xz
lib/mysql-functions, bin/return-assignment: keep build_slaves information synchronously up-to-date
Diffstat (limited to 'bin')
-rwxr-xr-xbin/return-assignment8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index dcbd62e..2f05495 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -161,7 +161,9 @@ if [ "$5" = 'ERROR' ]; then
printf 'COMMIT;\n'
printf 'UPDATE `build_slaves`'
printf ' SET `build_slaves`.`currently_building`=NULL,'
- printf ' `build_slaves`.`logged_lines`=NULL'
+ printf ' `build_slaves`.`last_action`=NULL,'
+ printf ' `build_slaves`.`logged_lines`=NULL,'
+ printf ' `build_slaves`.`trials`=NULL'
printf ' WHERE `build_slaves`.`id`=from_base64("%s");\n' \
"$(
printf '%s' "${slave_id}" | \
@@ -645,7 +647,9 @@ trigger_mirror_refreshs
# remove from build slave's `currently_building`
printf 'UPDATE `build_slaves`'
printf ' SET `build_slaves`.`currently_building`=NULL,'
- printf ' `build_slaves`.`logged_lines`=NULL'
+ printf ' `build_slaves`.`last_action`=NULL,'
+ printf ' `build_slaves`.`logged_lines`=NULL,'
+ printf ' `build_slaves`.`trials`=NULL'
printf ' WHERE `build_slaves`.`currently_building`=from_base64("%s");\n' \
"$(
printf '%s' "${build_assignment_id}" | \