Skip to content

Commit

Permalink
Merge pull request #855 from rfbgo/workflow_hostfile
Browse files Browse the repository at this point in the history
Add default variable to define likely hostfile path
  • Loading branch information
douglasjacobsen authored Jan 30, 2025
2 parents 9afa675 + 13fe551 commit 9c78b49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/ramble/ramble/workflow_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ 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 9c78b49

Please sign in to comment.