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 {
|
||||
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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue