Skip to content

Commit

Permalink
Add default variable to define likely hostfile path
Browse files Browse the repository at this point in the history
  • Loading branch information
rfbgo committed Jan 30, 2025
1 parent a392e0b commit 688bb62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/ramble/ramble/workflow_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ class WorkflowManagerBase(metaclass=WorkflowManagerMeta):
description="Hostfile command to apply within execution templates for the workflow",
)

workflow_manager_variable(
"hostfile",
default="{experiment_run_dir}/hostfile",
description="Default hostfile path"
)

def __init__(self, file_path):
super().__init__()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,4 +271,4 @@ def get_partitions(self):
}

def get_hostfile_cmd(self):
return "scontrol show hostnames > {experiment_run_dir}/hostfile"
return "scontrol show hostnames > {hostfile}"

0 comments on commit 688bb62

Please sign in to comment.