Skip to content

Commit

Permalink
restore cluster utils
Browse files Browse the repository at this point in the history
  • Loading branch information
NishanthJKumar committed Nov 4, 2024
1 parent 62c092c commit 1bb365a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions scripts/cluster_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,17 @@ def generate_run_configs(config_filename: str,
def get_cmds_to_prep_repo(branch: str) -> List[str]:
"""Get the commands that should be run while already in the repository but
before launching the experiments."""
return []
# old_dir_pattern = " ".join(f"{d}/" for d in SAVE_DIRS)
# return [
# "git stash",
# "git fetch --all",
# f"git checkout {branch}",
# "git pull",
# # Remove old results.
# f"rm -rf {old_dir_pattern}",
# "mkdir -p logs",
# ]
# return []
old_dir_pattern = " ".join(f"{d}/" for d in SAVE_DIRS)
return [
"git stash",
"git fetch --all",
f"git checkout {branch}",
"git pull",
# Remove old results.
f"rm -rf {old_dir_pattern}",
"mkdir -p logs",
]


def run_cmds_on_machine(
Expand Down

0 comments on commit 1bb365a

Please sign in to comment.