-
Notifications
You must be signed in to change notification settings - Fork 25
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
cleanup performed on symlinks in work dir #105
Comments
@critias what is your opinion? |
There was a fix that this at least only happens once #66 |
Thanks for the pointer. I already had that commit applied. But what I mean is a more general question: why does a sisyphus manager have control over a sisyphus job dir which is not located in the corresponding work dir?! |
Well, I wouldn't say it was a design choice. I just never checked this and so far nobody wanted it changed 😄 I frequently setup an experiment directory at one place, created the work directory somewhere else and created a symlink to it. So only cleaning directories in the corresponding work dir would skip all jobs in that case. Checking if the job directory itself is not a symlink (e.g. work/i6_core/datasets/librispeech/DownloadLibriSpeechCorpusJob.8iqSB1tz3OMD should not be a symlink) and that it belongs to the same user sounds like a good heuristic. |
We are creating common baselines in a shared work dir from which everybody can import. To reduce data duplication, we want to use symlinks. But this sounds like a good solution to me. I can make the PR, if you don't have time. |
Thanks, a PR would be great. |
Hi @christophmluscher, any update on this? |
Is the second check (belongs to the same user) really good or necessary? I think just the first check (never cleanup symlinked job dirs) is more robust. Maybe I created the shared work dir and then in another separate Sisyphus setup, I would also not want that it touches my own externally symlinked job dirs. If you agree, I probably would implement this soon. Should this be an option or just the new behavior? If this is supposed to be an option, what should be its default? |
Hey,
I get this error while running the sisyphus manager.
The sisyphus job dir is a symlink to location I have no write access.
I think there is a wrong assumption here. That you actually do not what to clean up a symlinked sisyphus job since you cannot reliably say that it belongs under your control
The text was updated successfully, but these errors were encountered: