-
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
multiple instances of DVC can repro the same stage file in the same git repo at the same time. is it expected ? #3370
Comments
@Ykid Local version for that works as expected, errorring out:
with your particular dockerfile, the tolerances are quite lower, because |
this is already the case when I enable verbose mode, the logs are
|
@Ykid Oops, I'm blind 🙁 Sorry, didn't notice that right away. Thanks for the logs! Very interesting, looks like there is indeed some issue there. Could you try running |
@efiop without docker dvc it looks like what you said above #3370 (comment) |
@Ykid Ok, so I guess we are missing something docker-specific here. Might be some isolation aspect that we are not catching right away. Need to investigate closer. There main mechanism that should've kicked in there is |
@efiop i am not with my computer now. Would you mind trying to reproduce ? My description should Applicable to Linux platform |
@skshetry You are absolutely right! That is precisely what is happening! Pid and cmd match, so rwlock thinks that it is his own process. Might consider adding another parameter to |
This comment has been minimized.
This comment has been minimized.
how about associate a random number for execution of dvc ? |
@Ykid Yep, some variation of that would work. Maybe you would like to submit a PR? 🙂 |
interested to give a try but can't guarantee a delivery time due to work factors. 😅 . also a few pointers to corresponding files would be nice |
@Ykid That's understandable. The file in question is https://github.com/iterative/dvc/blob/master/dvc/rwlock.py . In particlular this line https://github.com/iterative/dvc/blob/0.87.0/dvc/rwlock.py#L161 . We need to generate a run-unique id and put it in addition to the existing |
Closing as stale |
Please provide information about your setup
DVC version(i.e.
dvc --version
), Platform and method of installation (pip, homebrew, pkg Mac, exe (Windows), DEB(Linux), RPM(Linux))DVC version: 0.86.4
Python version: 3.7.6
Platform: Linux-5.0.0-37-generic-x86_64-with-debian-buster-sid
Binary: False
Package: pip
to reproduce
The text was updated successfully, but these errors were encountered: