scdl-org/scdl

Delete *.scdl.lock after all processes are complete

Closed this issue · 3 comments

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.

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)

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