Delete *.scdl.lock after all processes are complete
Closed this issue · 3 comments
adithayyil commented
I am not sure how the behaviour is in Windows. But in UNIX, the lock files are not deleted when released because of race conditions. See here. For scdl specifically, I would assume that the lock files are not needed when there are no scdl processes running anymore? If so, we need to have some sort of deleting mechanism because directories would get messy after some point.
7x11x13 commented
Oh that's annoying... I guess we should keep the lockfiles in a tempdir as suggested here (if we are not on Windows): tox-dev/filelock#76 (comment)
adithayyil commented
yup that would work I think. we can also keep it hidden like ./.scdl.locks/
, and when the process exits or finishes we can simply remove the dir.
7x11x13 commented
Should be fixed now