-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Description
Version
DVC version: 0.70.0
Python version: 3.7.3
Platform: Linux-5.0.0-36-generic-x86_64-with-Ubuntu-18.04-bionic
Binary: False
Package: pip
Cache: reflink - False, hardlink - True, symlink - True
Problem
.dvc/lock is ignored when a dvc command is run for the second time.

Expected behaviour
When dvc status is run for the second time, it should throw an error since .dvc/lock isn't deleted yet so it should have prevented the command from running.
Reproduce
- Manually created
lockfile.
$ touch .dvc/lock
- Run
dvc status. (Throws error)
>>>
ERROR: failed to obtain data status - cannot perform the command because another DVC process seems to be running on this project. If that is not the case, manually remove `.dvc/lock` and try again.
- Run
ls .dvcto check iflockis still present.
$ ls .dvc
>>> cache config lock state tmp updater
- Run
dvc statusagain.
Runs successfully. It should not sincelockis still present.