Skip to content

Commit

Permalink
run: do not compute hash when no_exec is set (#5380)
Browse files Browse the repository at this point in the history
Prevent computing hashes of dependencies when
no_exec is set.

Fixes #5368

Co-authored-by: Jan Stratil <[email protected]>
  • Loading branch information
Honzys and Honzys authored Feb 2, 2021
1 parent 4be9f0e commit bd39e4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dvc/repo/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def run(self, fname=None, no_exec=False, single_stage=False, **kwargs):
stage_cls, repo=self, path=path, params=params, **kwargs
)
restore_meta(stage)
if kwargs.get("run_cache", True) and stage.can_be_skipped:
if not no_exec and kwargs.get("run_cache", True) and stage.can_be_skipped:
return None

dvcfile = Dvcfile(self, stage.path)
Expand Down

0 comments on commit bd39e4e

Please sign in to comment.