You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# You can use all fluent syntax or MlflowClient APIs and all of them will log metrics in asynchronous fashion.
206
+
mlflow.log_metric("metric1", 9.42)
207
+
# (...)
208
+
```
209
+
193
210
When you use `log_metric(synchronous=False)`, control is automatically returned to the caller once the operation is accepted; however, the value is not available for reading inmediately. Asynchronous logging of metrics does guarantee order and they are persisted with the timestamp of when they were logged.
194
211
195
212
> [!IMPORTANT]
@@ -225,6 +242,7 @@ with mlflow.start_run() as current_run:
225
242
run_operation = mlflow_client.log_batch(
226
243
run_id=current_run.info.run_id,
227
244
metrics=metrics_arr,
245
+
#Optional when global async logging flag is set using - mlflow.enable_async_logging()
0 commit comments