MCPcopy
hub / github.com/treeverse/dvc / run

Function run

dvc/repo/run.py:16–35  ·  view source on GitHub ↗
(
    self: "Repo",
    no_exec: bool = False,
    no_commit: bool = False,
    run_cache: bool = True,
    force: bool = True,
    **kwargs,
)

Source from the content-addressed store, hash-verified

14@locked
15@scm_context
16def run(
17 self: "Repo",
18 no_exec: bool = False,
19 no_commit: bool = False,
20 run_cache: bool = True,
21 force: bool = True,
22 **kwargs,
23) -> Union["Stage", "PipelineStage"]:
24 assert not kwargs.get("single_stage")
25 assert not kwargs.get("fname")
26 kwargs.update({"force": force, "params": parse_params(kwargs.get("params", []))})
27 stage = self.stage.create(**kwargs)
28
29 if no_exec:
30 stage.ignore_outs()
31 else:
32 stage.run(no_commit=no_commit, run_cache=run_cache)
33
34 stage.dump(update_lock=not no_exec)
35 return stage

Callers 1

run_stageFunction · 0.50

Calls 7

parse_paramsFunction · 0.90
ignore_outsMethod · 0.80
getMethod · 0.45
updateMethod · 0.45
createMethod · 0.45
runMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected