Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
copy some lessons from hail
Browse files Browse the repository at this point in the history
copying some ideas from the discussion at hail-is/hail#4241
  • Loading branch information
danking authored Sep 7, 2018
1 parent 3768c7e commit d63c292
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions hail-ci-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ CLUSTER_NAME_0_1=cloudtools-ci-$(LC_CTYPE=C LC_ALL=C tr -dc 'a-z0-9' < /dev/uran

shutdown_cluster() {
set +e
time cluster stop --async ${CLUSTER_NAME_0_2}
time cluster stop --async ${CLUSTER_NAME_0_1}
time gcloud dataproc clusters delete ${CLUSTER_NAME_0_2} --async
time gcloud dataproc clusters delete ${CLUSTER_NAME_0_1} --async
exit
}
trap shutdown_cluster INT TERM ERR
trap shutdown_cluster EXIT

trap "exit 42" INT TERM

# check binary exists
time cluster start --help
Expand Down

0 comments on commit d63c292

Please sign in to comment.