(self)
| 83 | |
| 84 | class CmdDataFetch(CmdDataBase): |
| 85 | def run(self): |
| 86 | from dvc.exceptions import DvcException |
| 87 | |
| 88 | try: |
| 89 | processed_files_count = self.repo.fetch( |
| 90 | targets=self.args.targets, |
| 91 | jobs=self.args.jobs, |
| 92 | remote=self.args.remote, |
| 93 | all_branches=self.args.all_branches, |
| 94 | all_tags=self.args.all_tags, |
| 95 | all_commits=self.args.all_commits, |
| 96 | with_deps=self.args.with_deps, |
| 97 | recursive=self.args.recursive, |
| 98 | run_cache=self.args.run_cache, |
| 99 | max_size=self.args.max_size, |
| 100 | types=self.args.types, |
| 101 | ) |
| 102 | self.log_summary({"fetched": processed_files_count}) |
| 103 | except DvcException: |
| 104 | logger.exception("failed to fetch data from the cloud") |
| 105 | return 1 |
| 106 | return 0 |
| 107 | |
| 108 | |
| 109 | def shared_parent_parser(): |
nothing calls this directly
no test coverage detected