Skip to content

Commit

Permalink
Review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindeide committed Jan 13, 2025
1 parent 79150f9 commit 1ff75a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
12 changes: 0 additions & 12 deletions src/everest/config/server_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/everest/detached/jobs/everserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 1ff75a9

Please sign in to comment.