The relevant information about running a BQ script manually can be found here - BigQuery Intro
Cheatsheet:
- Check OpsTracker to make sure that the view you want to update is not disabled.
ssh root@app1.logimeter.comsource /opt/logimeter/env/live/bin/activatecd /usr/local/src/lm/live/webpython manage.py dbshellDROP VIEW IF EXISTS <bigquery_materialized_view>;- Then you add the SQL to create the view for the dash
cd /usr/local/src/lm/live/script/bigquery/- To FORCE the BQ to run, we can do it in a few ways:
python bigquery_upload.py -dr "<bigquery_dataset_record_name>"active_tns, connect_v2
eg.python bigquery_upload.py -d "<bigquery_query_name>"eg. "[MOTUS] BQ Data - Unique Connects - Master V2"- Make sure to check the logs for any errors.

