Skip to content
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

Aborting dvc exp run using CTRL-c can lead to apparent loss of recent script edits #10655

Open
billtubbs opened this issue Dec 18, 2024 · 0 comments
Labels
A: experiments Related to dvc exp p2-medium Medium priority, should be done, but less important ui user interface / interaction

Comments

@billtubbs
Copy link

billtubbs commented Dec 18, 2024

Had a somewhat scary thing happen last night where I was editing and testing a dvc pipeline stage manually (python stages/my_stage.py) and then accidentally ran dvc exp run which I did not want to do, so I quickly pressed CTRL-c (possibly more than once).

Once it exited I realised my code was back to the state it was in at the previous git commit and I thought I had lost all my changes. Fortunately, I found them all in the stash

For other users having this problem here are the recovery steps:

git stash show
git stash pop

I tried googling this and couldn't find any other reports of this problem or the recovery steps.

My immediate problem is solved but my questions are

  • How can this be avoided?
  • Is there a better/safer way to abort a dvc run?
  • Is the recovery step well known and if not can we make it easier to find, (e.g. in the documentation)?

Bill.

@shcheklein shcheklein added p2-medium Medium priority, should be done, but less important ui user interface / interaction A: experiments Related to dvc exp labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: experiments Related to dvc exp p2-medium Medium priority, should be done, but less important ui user interface / interaction
Projects
None yet
Development

No branches or pull requests

2 participants