Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull: fetch: external: respect --jobs #3413

Merged
merged 1 commit into from
Feb 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dvc/repo/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _fetch(
failed += exc.amount

for (repo_url, repo_rev), files in used.external.items():
d, f = _fetch_external(self, repo_url, repo_rev, files)
d, f = _fetch_external(self, repo_url, repo_rev, files, jobs)
downloaded += d
failed += f

Expand All @@ -68,7 +68,7 @@ def _fetch(
return downloaded


def _fetch_external(self, repo_url, repo_rev, files):
def _fetch_external(self, repo_url, repo_rev, files, jobs):
from dvc.external_repo import external_repo

failed = 0
Expand All @@ -91,7 +91,7 @@ def _fetch_external(self, repo_url, repo_rev, files):
cache.update(out.get_used_cache())

try:
return repo.cloud.pull(cache), failed
return repo.cloud.pull(cache, jobs=jobs), failed
except DownloadError as exc:
failed += exc.amount
except CloneError:
Expand Down