Closed adithayyil closed 5 months ago
Oh that's annoying... I guess we should keep the lockfiles in a tempdir as suggested here (if we are not on Windows): https://github.com/tox-dev/filelock/issues/76#issuecomment-696409014
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.
Should be fixed now
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.