system-config/modules/openstack_project/files/gerrit/change-merged
Clark Boylan 1160068ce4 Use timeout(1) to timeout and kill gerrit hooks.
If a gerrit hook blocks none of the other hooks queued behind it run.
Give each hook subprocess 10 minutes to run otherwise timeout and kill
that process.

Change-Id: Ic5e1243e08088dbf0c5bff49e7fc05bcb867819b
Reviewed-on: https://review.openstack.org/11475
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-08-16 17:03:31 +00:00

5 lines
161 B
Bash
Executable File

#!/bin/sh
# Use timeout to kill any process running longer than 10 minutes.
timeout -k 2m 10m python /usr/local/gerrit/scripts/update_bug.py change-merged "$@"