Skip to content

Commit db4dd62

Browse files
committed
run: add a clarification about --always-changed and "callback" DVC-files
Fixes iterative/dvc#2843
1 parent 62ebbde commit db4dd62

File tree

1 file changed

+5
-3
lines changed
  • static/docs/command-reference

1 file changed

+5
-3
lines changed

static/docs/command-reference/run.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,11 @@ try creating a pipeline.
126126
- `--ignore-build-cache` - if an exactly equal DVC-file exists (same list of
127127
outputs and inputs, the same command to run), which has been already executed
128128
and is up to date, `dvc run` won't normally execute the command again (thus
129-
"build cache"). This option gives a way to forcefully execute the command
130-
anyway. It's useful if the command is non-deterministic (meaning it produces
131-
different outputs from the same list of inputs).
129+
"build cache"), unless it is an `--always-changed` DVC-file or it doesn't have
130+
any dependencies (same as `--always-changed`). This option gives a way to
131+
forcefully execute the command anyway. It's useful if the command is
132+
non-deterministic (meaning it produces different outputs from the same list of
133+
inputs).
132134

133135
- `--remove-outs` - it removes stage outputs before executing the command. If
134136
`--no-exec` specified outputs are removed anyway. This option is enabled by

0 commit comments

Comments
 (0)