build02/nixpkgs-update: add timeout for workers
This commit is contained in:
parent
e24a3ac8cb
commit
3c99cb3eeb
1 changed files with 4 additions and 1 deletions
|
@ -59,8 +59,11 @@ let
|
||||||
function run-nixpkgs-update {
|
function run-nixpkgs-update {
|
||||||
exit_code=0
|
exit_code=0
|
||||||
set -x
|
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
|
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"
|
msg="DONE $attr_path $exit_code"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue