-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Callback stage not exectued if params defined in dvc.yaml #4335
Comments
Reproduction script with
So I guess the question here is whether we want run cache to have priority over @jhoecker Workaround, for now, would be to |
@pared, regarding these, we have to ask ourselves two questions:
As per docs, "always_changed" stages should be always executed, so 1's answer should probably be no.
What should happen? Should it be re-executed? Or, should it be reproduced from the run-cache? |
@pared Yes, I tried that yesterday. But that reproduces the full pipeline even though there are no changes in the downloaded data making subsequent stages unnecessary. Thinking about this a bit longer it is probably the right way to drop the However: Thank you for your fast responses and the nice piece of software 👍 |
@jhoecker that makes sense. So that seems like a bug.
|
Update: currently (as of 1.8.2) we don't restore |
Saving is an interesting topic, potentially it could be useful for things that are importing stuff in some way. E.g. an Afterall, seems like we indeed shouldn't save Thank you guys for a great discussion! 🙏 |
Bug Report
Callback stages (defined by not existing dependencies as well as by
dvc run --always-changed
option) are not executed if parameters were defined in thedvc.yaml
but restored from the run-cache and skipped.Minimal example:
This leads from my point of view to quite confusing and inconsistent behavior. If this is the desired behavior then it should be mentioned in the documentation.
I would like to define the names of data folders and files in the
params.yaml
which are updated from the www every time I kick of the pipeline. Thus I would like to use the params in combination with a callback stage.Please provide information about your setup
Tested on Win10 as well as on Raspbian.
Output of
dvc version
:The text was updated successfully, but these errors were encountered: