build02/nixpkgs-update: add timeout for workers

This commit is contained in:
Ryan Hendrickson 2023-11-10 22:16:54 -05:00 committed by Ryan Mulligan
parent e24a3ac8cb
commit 3c99cb3eeb

View file

@ -59,8 +59,11 @@ let
function run-nixpkgs-update {
exit_code=0
set -x
${nixpkgs-update-bin} update-batch --pr --outpaths --nixpkgs-review "$attr_path $payload" || exit_code=$?
timeout 12h ${nixpkgs-update-bin} update-batch --pr --outpaths --nixpkgs-review "$attr_path $payload" || exit_code=$?
set +x
if [ $exit_code -eq 124 ]; then
echo "Update was interrupted because it was taking too long."
fi
msg="DONE $attr_path $exit_code"
}