From 1ff75a9c8f8bf8b8200c70951e287e6e30156ef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Eide?= Date: Mon, 13 Jan 2025 10:36:17 +0100 Subject: [PATCH] Review comment --- src/everest/config/server_config.py | 12 ------------ src/everest/detached/jobs/everserver.py | 3 +-- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/everest/config/server_config.py b/src/everest/config/server_config.py index dfdf8f15d87..90964eee5a5 100644 --- a/src/everest/config/server_config.py +++ b/src/everest/config/server_config.py @@ -22,18 +22,6 @@ class ServerConfig(BaseModel): # type: ignore - name: str | None = Field( - None, - description="""Specifies which queue to use. - -Examples are -* mr -* bigmem - -The everest server generally has lower resource requirements than forward models such -as RMS and Eclipse. - """, - ) # Corresponds to queue name queue_system: ( LocalQueueOptions | LsfQueueOptions diff --git a/src/everest/detached/jobs/everserver.py b/src/everest/detached/jobs/everserver.py index 33f5a96c8b8..3422748c5ff 100755 --- a/src/everest/detached/jobs/everserver.py +++ b/src/everest/detached/jobs/everserver.py @@ -31,7 +31,6 @@ HTTPBasicCredentials, ) -from ert.config import QueueSystem from ert.ensemble_evaluator import EvaluatorServerConfig from ert.run_models.everest_run_model import EverestExitCode, EverestRunModel from everest import export_to_csv, export_with_progress @@ -305,7 +304,7 @@ def main(): simulation_callback=partial(_sim_monitor, shared_data=shared_data), optimization_callback=partial(_opt_monitor, shared_data=shared_data), ) - if run_model.ert_config.queue_config.queue_system == QueueSystem.LOCAL: + if config.simulator.queue_system.name == "local": evaluator_server_config = EvaluatorServerConfig() else: evaluator_server_config = EvaluatorServerConfig(