We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5426d9 commit e184579Copy full SHA for e184579
ml_logger/VERSION
@@ -1 +1 @@
1
-0.8.31
+0.8.32
ml_logger/ml_logger/__init__.py
@@ -186,10 +186,12 @@ def thunk(*args, **kwargs):
186
187
results = fn(*(args or ARGS), **_KWARGS)
188
189
- logger.log_line("========== execution is complete ==========")
190
- logger.job_completed()
191
- logger.flush()
+ with logger.SyncContext(): # Make sure uploaded finished before termination.
+ logger.log_line("========== execution is complete ==========")
+ logger.job_completed()
192
+ logger.flush()
193
time.sleep(3)
194
+
195
except Exception as e:
196
tb = traceback.format_exc()
197
with logger.SyncContext(): # Make sure uploaded finished before termination.
0 commit comments