We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd31c13 commit c033c59Copy full SHA for c033c59
google/cloud/aiplatform/tensorboard/uploader_tracker.py
@@ -106,6 +106,18 @@ def start_upload_tb_log(
106
):
107
"""continues to listen for new data in the logdir and uploads when it appears.
108
109
+ Note that after calling `start_upload_tb_log()` your thread will kept alive even if
110
+ an exception is thrown. To ensure the thread gets shut down, put any code after
111
+ `start_upload_tb_log()` and before `end_upload_tb_log()` in a `try` statement, and call
112
+ `end_upload_tb_log()` in `finally`. For example:
113
+
114
+ aiplatform.start_upload_tb_log(...)
115
116
+ try:
117
+ # your code here
118
+ finally:
119
+ aiplatform.end_upload_tb_log()
120
121
```
122
Sample usage:
123
aiplatform.init(location='us-central1', project='my-project')
0 commit comments