Skip to content

Commit

Permalink
exp pull: update for index fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrowla committed Jun 26, 2023
1 parent a750a75 commit 4ee4f13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dvc/repo/experiments/executor/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ def collect_cache(
"""Collect DVC cache."""
from dvc.repo.experiments.pull import _pull_cache

with self.get_odb() as odb:
_pull_cache(repo, exp_ref, run_cache=run_cache, odb=odb)
_pull_cache(repo, exp_ref, run_cache=run_cache)

@contextmanager
def get_odb(self):
Expand Down
3 changes: 1 addition & 2 deletions dvc/repo/experiments/pull.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,9 @@ def _pull_cache(
dvc_remote=None,
jobs=None,
run_cache=False,
odb=None,
):
if isinstance(refs, ExpRefInfo):
refs = [refs]
revs = list(exp_commits(repo.scm, refs))
logger.debug("dvc fetch experiment '%s'", refs)
repo.fetch(jobs=jobs, remote=dvc_remote, run_cache=run_cache, revs=revs, odb=odb)
repo.fetch(jobs=jobs, remote=dvc_remote, run_cache=run_cache, revs=revs)

0 comments on commit 4ee4f13

Please sign in to comment.