-
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
consider introducing dvc hooks #2363
Comments
This is a scenario where DVC hooks may be useful: #2330 DVC hooks can be placed on Before running the command How is this related to the issue #2330? We can imagine a couple of hooks Another example of using hooks may be with the command Another scenario is the one described here: #2359 (comment) |
Closing for now, as there doesn't seem to be enough interest. The feature still seems useful, so maybe we'll reopen in the future, once there are more use cases. |
+1 for this feature |
@evstratbg Could you share more details about your scenario, please? 🙂 |
@efiop sure |
@evstratbg Hm, might be missing something, but have you considered regular git hooks? E.g. when a |
I have a new use-case for this feature. I have a pretty strict deadline so I guess I'll have to find another way, but since this might be useful for someone, here goes: I am creating a CLI tool that manages a fully local ML pipeline/workflow, to be used on small experimental projects. If you're curious, my approach will be to simply add a new cli command that generates and shows the metadata on the browser. (I think I'll also be storing the html source code directly on the .dvc yaml file, to force the user to run this command instead of just clicking on an html file, if that's a bad idea pls let me know). |
@WALEX2000 Have you considered using a git hook to generate those when you will be git committing corresponding dvc files? |
As I said in the previous post, I'd rather generate the metadata as soon as the file is added to DVC, instead of waiting for a commit. |
A lot of tools fail to "see through" symlinks and we need to |
I have a really big datasets by the number of files. I don't want to ever push them unarchived to storage since it is really expensive (even single push). I better use some |
These would work similarly to git hooks. For example, one could configure
post-repro
hook that would rundvc push
. Nice thing about these is that they would be tracked by git, so you won't have to re-install your hooks after each clone as you have to do with git hooks. The scenarios for which this feature could be useful are not yet that clear to me, so I would love to hear if any users have any scenarios in mind in which they would find such functionality handy.Also, as @shcheklein noted #2359 (comment) if we actually decide to implement this, we'll need to consider using something better than single executables for hooks (e.g. yaml config like pre-commit does).
#2359 (comment)
The text was updated successfully, but these errors were encountered: