Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0f6a39

Browse files
authored
Update on_finish from async to sync (tensorflow#5242)
1 parent 0783f1c commit e0f6a39

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

official/utils/logs/logger.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,11 @@ def log_run_info(self, model_name, dataset_name, run_params, test_id=None):
291291
RUN_STATUS_RUNNING))
292292

293293
def on_finish(self, status):
294-
thread.start_new_thread(
295-
self._bigquery_uploader.update_run_status,
296-
(self._bigquery_data_set,
297-
self._bigquery_run_status_table,
298-
self._run_id,
299-
status))
294+
self._bigquery_uploader.update_run_status(
295+
self._bigquery_data_set,
296+
self._bigquery_run_status_table,
297+
self._run_id,
298+
status)
300299

301300

302301
def _gather_run_info(model_name, dataset_name, run_params, test_id):

0 commit comments

Comments
 (0)