From 525cf4cbfdb63c224fcbf04d8591134c89525c79 Mon Sep 17 00:00:00 2001 From: larsevj Date: Tue, 20 Aug 2024 12:46:53 +0200 Subject: [PATCH] Launch ResInsight with port number 0 Utilize grpc random port selection by setting value to 0 --- .../jobs/fm_well_trajectory/well_trajectory_resinsight.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/everest_models/jobs/fm_well_trajectory/well_trajectory_resinsight.py b/src/everest_models/jobs/fm_well_trajectory/well_trajectory_resinsight.py index c99ac508..71129fcc 100644 --- a/src/everest_models/jobs/fm_well_trajectory/well_trajectory_resinsight.py +++ b/src/everest_models/jobs/fm_well_trajectory/well_trajectory_resinsight.py @@ -25,7 +25,7 @@ def __init__(self, executable: str = "") -> None: def __enter__(self) -> rips.Instance: logger.info("Launching ResInsight...") - instance = rips.Instance.launch(self._executable, console=True) + instance = rips.Instance.launch(self._executable, console=True, launch_port=0) if instance is None: msg = ( "Failed to launch ResInsight: no executable found"