diff --git a/action.sh b/action.sh index a114b96..bcf7ca8 100755 --- a/action.sh +++ b/action.sh @@ -232,8 +232,8 @@ function start_vm { ./svc.sh install && \\ ./svc.sh start && \\ gcloud compute instances add-labels ${VM_ID} --zone=${machine_zone} --labels=gh_ready=1 - # 3 days represents the max workflow runtime. This will shutdown the instance if everything else fails. - nohup sh -c \"sleep 3d && gcloud --quiet compute instances delete ${VM_ID} --zone=${machine_zone}\" > /dev/null & + # we cancel any workflows longer than 5 hours (was originally 3 days, the max workflow runtime) + nohup sh -c \"sleep 5h && gcloud --quiet compute instances delete ${VM_ID} --zone=${machine_zone}\" > /dev/null & " if $actions_preinstalled ; then