Skip to content

Commit d4f5566

Browse files
author
Daniel King
committed
spawn
1 parent a6c83d5 commit d4f5566

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

composer/loggers/mlflow_logger.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@
3636
DEFAULT_MLFLOW_EXPERIMENT_NAME = 'my-mlflow-experiment'
3737
LOG_DUPLICATED_METRIC_VALUE_PER_N_STEPS = 100
3838

39+
spawn_context = multiprocessing.get_context('spawn')
3940

40-
class MlflowMonitorProcess(multiprocessing.Process):
41+
class MlflowMonitorProcess(spawn_context.Process):
4142

4243
def __init__(self, main_pid, mlflow_run_id, mlflow_tracking_uri):
4344
super().__init__()

0 commit comments

Comments
 (0)