File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/appengine/handlers/cron Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 27
27
from google_cloud_utils import big_query
28
28
from handlers import base_handler
29
29
from libs import handler
30
+ from metrics import logs
30
31
31
32
HIGH_TEMPERATURE_PARAMETER = .75
32
33
MEDIUM_TEMPERATURE_PARAMETER = .5
@@ -176,9 +177,13 @@ def _store_probabilities_in_bigquery(data):
176
177
}
177
178
bigquery_data .append (big_query .Insert (row = bigquery_row , insert_id = None ))
178
179
179
- client = big_query .Client (
180
- dataset_id = 'main' , table_id = 'fuzz_strategy_experiments' )
181
- client .insert (bigquery_data )
180
+ if bigquery_data :
181
+ client = big_query .Client (
182
+ dataset_id = 'main' , table_id = 'fuzz_strategy_experiments' )
183
+ client .insert (bigquery_data )
184
+ else :
185
+ logs .log ("No fuzz strategy distribution data was found to upload to "
186
+ "BigQuery." )
182
187
183
188
184
189
def _query_and_upload_strategy_probabilities ():
You can’t perform that action at this time.
0 commit comments