batcave vmdiff.sh: timeout this hourly cron job to 1h

Prevent these jobs from running so long that new jobs can get started
meanwhile.  batcave has been observed to run sometimes dozens of old
list-vms-per-host processes under unusual but not rare circumstances.
This commit is contained in:
Frank Ch. Eigler 2022-10-21 10:07:27 -04:00 committed by kevin
parent b671e0e571
commit 55bfa1af29

View file

@ -5,7 +5,7 @@ diffout=$(mktemp tmp.XXXXXXXXX)
mailto='admin@fedoraproject.org'
source /root/sshagent >>/dev/null
export ANSIBLE_HOST_KEY_CHECKING=False
/srv/web/infra/ansible/scripts/list-vms-per-host virtservers 2>/dev/null > "$output"
timeout 1h /srv/web/infra/ansible/scripts/list-vms-per-host virtservers 2>/dev/null > "$output"
chmod 644 "$output"
diff -u "$dest" "$output" > $diffout
rc=$?