Skip to content

Commit

Permalink
Pass in job_script
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindeide committed Sep 26, 2023
1 parent da9c3ee commit 36da8dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/ert/job_queue/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,13 +477,12 @@ async def execute_queue_comms_via_bus( # pylint: disable=too-many-arguments
def add_job_from_run_arg(
self,
run_arg: "RunArg",
ert_config: "ErtConfig",
job_script: str,
max_runtime: Optional[int],
num_cpu: int,
) -> None:
job_name = run_arg.job_name
run_path = run_arg.runpath
job_script = ert_config.queue_config.job_script

job = JobQueueNode(
job_script=job_script,
Expand Down
2 changes: 1 addition & 1 deletion src/ert/simulator/simulation_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def _run_forward_model(
continue
job_queue.add_job_from_run_arg(
run_arg,
ert.resConfig(),
ert.resConfig().queue_config.job_script,
max_runtime,
ert.get_num_cpu(),
)
Expand Down

0 comments on commit 36da8dc

Please sign in to comment.