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:
parent
b671e0e571
commit
55bfa1af29
1 changed files with 1 additions and 1 deletions
|
@ -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=$?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue