Skip to content
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

Sisyphus Autoclean with Symlinks #66

Open
Atticus1806 opened this issue Sep 21, 2021 · 13 comments
Open

Sisyphus Autoclean with Symlinks #66

Atticus1806 opened this issue Sep 21, 2021 · 13 comments

Comments

@Atticus1806
Copy link
Contributor

When importing jobs from other work directories as symlink sisyphus tries to autoclean them causing a lot of warnings, spamming the console. Is there a workarround or fix besides turning off autoclean?

@critias
Copy link
Contributor

critias commented Sep 21, 2021

I guess you are talking about this warning here, right?
https://github.com/rwth-i6/sisyphus/blob/master/sisyphus/job.py#L518
Looking at the code I guess you keep getting the same warnings for the same directories over and over again. At least I don't see any check to stop that. That would be an undesired behavior and needs to be fixed anyway, Sisyphus should stop trying to clean it up after the first try.

Or is your problem that you keep getting warnings for different directories? The only way I see right now is to disable the warning there in the code until I find a nicer solution.

@Atticus1806
Copy link
Contributor Author

Looking at the code I guess you keep getting the same warnings for the same directories over and over again.

Yes exactly. For now I turned off autocleaning because it was spamming the console every few minutes.

@critias
Copy link
Contributor

critias commented Sep 22, 2021

This branch here should fix your issue: https://github.com/rwth-i6/sisyphus/tree/cleanup_once
Could you give it a try and let me know if it works for you?

@Atticus1806
Copy link
Contributor Author

Hey, first of all sorry for the later reply.
So I switched to the branch (and also pulled the master which was quite behind in my sis version) and there is some other issue right now (visual I think):
It loads the config, then the usual appears
Print verbose overview (v), update aliases and outputs (u), start manager (y), or exit (n)? [2021-09-24 09:29:20,640] INFO: clean up: [SOME PATH] but as you can see there instantly also comes the first cleanup massage in the same line. I can just type y or the other commands but its already few lines behind because cleaning instantly starts. Besides that from what I can tell it is also not working, it still tries to clean up Jobs multiple times (In the output I found at least one job which is tried twice)

@critias
Copy link
Contributor

critias commented Sep 24, 2021

Good point, maybe the starting the cleaner should be delayed until the manger is started.
I'll take a look at this and why this didn't solve the double cleaning problem next week.

@critias
Copy link
Contributor

critias commented Oct 8, 2021

Sorry for the late reply. I added a bugfix to the cleanup_once branch and delayed the startup of the cleaner till the manager loop is started. Please try it again.

@Atticus1806
Copy link
Contributor Author

No worries, I was on vacation and only came back today so the timing was fitting :)

From what I see (like 10 minute test run) it seems to be working. Thanks again for your help!

@Atticus1806
Copy link
Contributor Author

Not sure why this is still open, but this is working now.

@Marvin84
Copy link

Not sure why this is still open, but this is working now.

@Atticus1806 Is this actually under master? I am still getting these warnings

@Marvin84 Marvin84 reopened this Oct 13, 2023
@critias
Copy link
Contributor

critias commented Oct 14, 2023

These changes are under master. They don't suppress all warning, but make sure that Sisyphus only tries to clean a directory once instead trying it each time the cleaner is run. So you should only get each warning once, instead of getting repeatedly all the time.

@Marvin84
Copy link

Marvin84 commented Oct 14, 2023 via email

@critias
Copy link
Contributor

critias commented Oct 17, 2023

You get each warning only once per start up! So if you restart Sisyphus it's expected to see the warnings again. Before that fix the same warning kept showing up over and over again every time Sisyphus tried to cleanup the directory.

I think you could just add a check if the directory which should be cleaned actually belongs the user running Sisyphus inside
_sis_cleanable. I guess that would remove these warnings for you and would probably be a good idea anyway.

@albertz
Copy link
Member

albertz commented Jan 5, 2024

Isn't this also fixed now via PR #154 (fixing issue #105)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants