Skip to content

Commit 331dc28

Browse files
committed
update script to create and deploy resources for the Vitune module
1 parent 8e1a749 commit 331dc28

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

broker/setup_broker/lsst/setup_broker.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ bq_table_alerts="alerts_${versiontag}"
5454
bq_table_supernnova="SuperNNova"
5555
bq_table_upsilon="upsilon"
5656
bq_table_variability="variability"
57+
bq_table_vitune="vitune"
5758
gcs_broker_bucket=$(define_GCP_resources "${PROJECT_ID}-${survey}-broker_files")
5859
ps_subscription_reservoir=$(define_GCP_resources "${survey}-alerts-reservoir")
5960
ps_topic_alerts_raw=$(define_GCP_resources "${survey}-alerts_raw")
@@ -90,6 +91,7 @@ manage_resources() {
9091
(cd templates && bq mk --table "${PROJECT_ID}:${bq_dataset}.${bq_table_supernnova}" "bq_${survey}_${bq_table_supernnova}_schema.json") || exit 5
9192
(cd templates && bq mk --table "${PROJECT_ID}:${bq_dataset}.${bq_table_variability}" "bq_${survey}_${bq_table_variability}_schema.json") || exit 5
9293
(cd templates && bq mk --table "${PROJECT_ID}:${bq_dataset}.${bq_table_upsilon}" "bq_${survey}_${bq_table_upsilon}_schema.json") || exit 5
94+
(cd templates && bq mk --table "${PROJECT_ID}:${bq_dataset}.${bq_table_vitune}" "bq_${survey}_${bq_table_vitune}_schema.json") || exit 5
9395
bq update --description "Alert data from LSST. This table is an archive of the lsst-alerts Pub/Sub stream. It has the same schema as the original alert bytes, including nested and repeated fields." "${PROJECT_ID}:${bq_dataset}.${bq_table_alerts}"
9496
bq update --description "Binary classification results from SuperNNova." "${PROJECT_ID}:${bq_dataset}.${bq_table_supernnova}"
9597

@@ -222,4 +224,8 @@ echo "Configuring Cloud Run services..."
222224
#--- upsilon Cloud Run service
223225
cd .. && cd classify_upsilon
224226
./deploy.sh "${testid}" "${teardown}" "${survey}" "${region}"
227+
228+
#--- vitune Cloud Run service
229+
cd .. && cd classify_vitune
230+
./deploy.sh "${testid}" "${teardown}" "${survey}" "${region}"
225231
) || exit

0 commit comments

Comments
 (0)